Function at 0x40c110
Capabilities:
Check if file exists
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x5a1e99
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
push ebx
push ebp
push esi
push edi
mov eax, dword [0x61e69c]
xor eax, esp
push eax
lea eax, [esp + 0xc4]
mov dword fs:[0], eax
xor ebp, ebp
mov dword [esp + 0xcc], ebp
mov eax, dword [esp + 0xd8]
cmp dword [eax - 0xc], ebp
jne 0x40c162
mov dword [esp + 0xcc], 0xffffffff
jmp 0x40cb9e
lea ecx, [esp + 0x20]
push ecx
call fcn.0048dda0
push ebp
push ecx
mov ebx, 1
mov byte [esp + 0xd4], bl
mov edx, esp
mov dword [esp + 0x24], esp
push edx
mov ecx, 0x5d8494
call fcn.004066b0
mov byte [esp + 0xd4], 2
mov eax, dword [esp + 0xe0]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x50], esp
mov esi, esp
call fcn.004073f0
add eax, 0x10
mov dword [esi], eax
lea eax, [esp + 0x80]
push eax
mov byte [esp + 0xdc], bl
call fcn.004ea06e
add esp, 0x10
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0xd4], 3
call fcn.0040d050
mov byte [esp + 0xcc], bl
mov eax, dword [esp + 0x80]
cmp eax, ebp
je 0x40c206
mov edi, dword [esp + 0x84]
call fcn.004075a0
mov edx, dword [esp + 0x80]
push edx
call fcn.004f6734
add esp, 4
mov eax, dword [esp + 0x74]
push eax
mov dword [esp + 0x84], ebp
mov dword [esp + 0x88], ebp
mov dword [esp + 0x8c], ebp
call fcn.004f6734
mov ecx, dword [esp + 0x34]
sub ecx, dword [esp + 0x30]
add esp, 4
test ecx, 0xfffffffc
jne 0x40c268
lea esi, [esp + 0x20]
call fcn.00406cb0
mov dword [esp + 0xcc], 0xffffffff
mov eax, dword [esp + 0xd8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40cbae
lea ecx, [esp + 0x8c]
push ecx
call fcn.0040d5c0
mov byte [esp + 0xcc], 4
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x2c]
sar eax, 2
cmp ebp, eax
jae 0x40c414
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + ebp*4]
cmp dword [eax - 0xc], 0
lea esi, [edx + ebp*4]
jl 0x40c3fa
push 0x5d87e4
push eax
call fcn.004f7373
add esp, 8
test eax, eax
je 0x40c3fa
sub eax, dword [esi]
sar eax, 1
mov edi, eax
cmp edi, 0xffffffff
je 0x40c3fa
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x2c]
sar eax, 2
cmp ebp, eax
jb 0x40c2dd
call fcn.004f825e
mov ecx, dword [esp + 0x2c]
lea edx, [ecx + ebp*4]
lea ecx, [edi + 1]
push ecx
mov esi, esp
mov dword [esp + 0x20], esp
call fcn.0040cf10
mov byte [esp + 0xd0], 5
mov edx, dword [esp + 0x34]
sub edx, dword [esp + 0x30]
sar edx, 2
cmp ebp, edx
jb 0x40c30f
call fcn.004f825e
mov eax, dword [esp + 0x30]
push ecx
lea edx, [eax + ebp*4]
mov eax, edi
mov ecx, esp
mov dword [esp + 0x4c], esp
call fcn.004098d0
lea esi, [esp + 0x68]
mov byte [esp + 0xd4], 4
call fcn.0040e180
add esp, 8
lea ecx, [esp + 0x6c]
push ecx
mov edi, eax
mov byte [esp + 0xd0], 6
call fcn.0040e220
lea edx, [esp + 0x6c]
push edx
lea eax, [esp + 0x90]
push eax
lea ebx, [esp + 0x7c]
mov byte [esp + 0xd4], 7
call fcn.0040d310
mov byte [esp + 0xcc], 6
mov eax, dword [esp + 0x70]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c392
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x6c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c3b2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xcc], 4
mov eax, dword [esp + 0x64]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c3da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c3fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x2c]
mov ebx, 1
add ebp, ebx
sar eax, 2
cmp ebp, eax
jb 0x40c290
xor esi, esi
cmp dword [esp + 0xa8], esi
jne 0x40c462
lea ecx, [esp + 0x8c]
push ecx
mov byte [esp + 0xd0], bl
call fcn.0040d2c0
mov eax, dword [esp + 0x2c]
cmp eax, esi
je 0x40c451
mov edi, dword [esp + 0x30]
call fcn.004075a0
mov edx, dword [esp + 0x2c]
push edx
call fcn.004f6734
add esp, 4
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
jmp 0x40cb7f
lea ecx, [esp + 0x5c]
push ecx
mov ecx, 0x5d87e8
call fcn.004066b0
lea ebx, [esp + 0x5c]
lea edi, [esp + 0x8c]
mov byte [esp + 0xcc], 8
call fcn.0040d170
mov eax, dword [eax]
sub eax, 0x10
call fcn.004073f0
lea ebp, [eax + 0x10]
mov dword [esp + 0x44], ebp
mov byte [esp + 0xcc], 0xa
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c4c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x54]
push ecx
mov ecx, str._Silent
call fcn.004066b0
lea ebx, [esp + 0x54]
lea edi, [esp + 0x8c]
mov byte [esp + 0xcc], 0xb
call fcn.0040d170
mov eax, dword [eax]
sub eax, 0x10
call fcn.004073f0
add eax, 0x10
mov dword [esp + 0x4c], eax
mov byte [esp + 0xcc], 0xd
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c522
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x50]
push ecx
mov ecx, str._SectionId
call fcn.004066b0
lea ebx, [esp + 0x50]
lea edi, [esp + 0x8c]
mov byte [esp + 0xcc], 0xe
call fcn.0040d170
mov eax, dword [eax]
sub eax, 0x10
call fcn.004073f0
add eax, 0x10
mov dword [esp + 0x38], eax
mov byte [esp + 0xcc], 0x10
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c582
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x58]
push ecx
mov ecx, str._UpdateType
call fcn.004066b0
lea ebx, [esp + 0x58]
lea edi, [esp + 0x8c]
mov byte [esp + 0xcc], 0x11
call fcn.0040d170
mov eax, dword [eax]
sub eax, 0x10
call fcn.004073f0
add eax, 0x10
mov dword [esp + 0x3c], eax
mov byte [esp + 0xcc], 0x13
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c5e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x68]
push ecx
mov ecx, str._ProductName
call fcn.004066b0
lea ebx, [esp + 0x68]
lea edi, [esp + 0x8c]
mov byte [esp + 0xcc], 0x14
call fcn.0040d170
mov eax, dword [eax]
sub eax, 0x10
call fcn.004073f0
add eax, 0x10
mov dword [esp + 0x40], eax
mov byte [esp + 0xcc], 0x16
mov eax, dword [esp + 0x68]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c642
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x60]
push ecx
mov ecx, str._CmdLine
call fcn.004066b0
lea ebx, [esp + 0x60]
lea edi, [esp + 0x8c]
mov byte [esp + 0xcc], 0x17
call fcn.0040d170
mov eax, dword [eax]
sub eax, 0x10
call fcn.004073f0
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0xcc], 0x19
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c6a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ebx, [esp + 0x14]
call fcn.00406ec0
mov ebx, eax
call fcn.00406f40
cmp dword [esp + 0xdc], esi
je 0x40c6cc
push 0xe
push str._refloader_v2
lea ecx, [esp + 0x1c]
push ecx
call fcn.00409a20
mov edx, dword [esp + 0x4c]
push edx
call fcn.004f7d3f
mov ebx, eax
mov eax, dword [esp + 0x18]
add esp, 4
push eax
push 0x5d888c
call fcn.0049d036
add esp, 4
mov ecx, esp
mov dword [esp + 0x20], esp
push ecx
mov ecx, 0x5d74e0
call fcn.004066b0
lea edx, [esp + 0xb0]
push edx
call fcn.0040b460
push ecx
add ebp, 0xfffffff0
mov byte [esp + 0xd0], 0x1a
mov dword [esp + 0x20], esp
mov eax, ebp
mov esi, esp
mov dword [esp + 0x20], ebp
call fcn.004073f0
add eax, 0x10
lea ecx, [esp + 0xb0]
mov dword [esi], eax
call fcn.0040b7e0
test eax, eax
je 0x40c8bc
push 0x5d88cc
call fcn.0049d036
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
call fcn.004073f0
add eax, 0x10
push ebx
lea edi, [esp + 0xb4]
mov dword [esi], eax
call fcn.0040b8c0
test eax, eax
je 0x40c8bc
push 0x5d8908
call fcn.0049d036
mov byte [esp + 0xd0], 0x19
mov eax, dword [esp + 0xc0]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c7af
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xcc], 0x16
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c7d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xcc], 0x13
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c7ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xcc], 0x10
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c827
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xcc], 0xd
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c84f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xcc], 0xa
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c877
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xcc], 4
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c899
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
lea eax, [esp + 0x8c]
push eax
mov byte [esp + 0xd0], 1
call fcn.0040d2c0
lea esi, [esp + 0x20]
call fcn.00406cb0
jmp 0x40cb8c
lea esi, [esp + 0x48]
call fcn.0040af20
push 0x17
push str.UtilsModuleUpdate.exe
mov ecx, esi
push ecx
mov byte [esp + 0xd8], 0x1b
call fcn.00409a20
mov esi, dword [esp + 0xd4]
mov eax, dword [esi + 8]
lea ebp, [esi + 8]
test eax, eax
je 0x40c901
push 1
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x40c9fe
mov edx, dword [esp + 0x48]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40c9fe
push 1
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.0040ccd0
mov byte [esp + 0xcc], 0x1c
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jl 0x40c94d
push 0x5d8944
push eax
call fcn.004f7373
add esp, 8
test eax, eax
je 0x40c94d
sub eax, dword [esp + 0x14]
sar eax, 1
jns 0x40c957
mov ecx, dword [esp + 0x44]
cmp dword [ecx - 0xc], 0
je 0x40c964
lea eax, [esp + 0x44]
lea edi, [esp + 0x18]
call fcn.00406fe0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
push 0x5d8948
call fcn.0049d036
add esp, 0x18
push ebp
lea ecx, [esi + 4]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x30]
push eax
push ebx
call fcn.0040afe0
test eax, eax
je 0x40c9d6
call fcn.0040ce20
test eax, eax
je 0x40c9d6
push 0
push 0
push esi
push 0x40b960
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0xcc], 0x1b
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c9fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xcc], 0x1a
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ca26
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xcc], 0x19
mov eax, dword [esp + 0xbc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ca51
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xcc], 0x16
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ca79
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xcc], 0x13
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40caa1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xcc], 0x10
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cac9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xcc], 0xd
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40caf1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xcc], 0xa
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cb19
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xcc], 4
mov eax, dword [esp + 0x1c]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cb3e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x8c]
push ecx
mov byte [esp + 0xd0], 1
call fcn.0040d2c0
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x40cb71
mov edi, dword [esp + 0x30]
call fcn.004075a0
mov edx, dword [esp + 0x2c]
push edx
call fcn.004f6734
add esp, 4
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x20]
push eax
call fcn.004f6734
add esp, 4
mov dword [esp + 0xcc], 0xffffffff
mov eax, dword [esp + 0xd8]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cbba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xc4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xbc
ret 0xc