Function at 0x408650
Capabilities:
Create directory
Create thread
Delete file
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x4245c1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x890
mov eax, dword [0x42e9bc]
push ebx
push ebp
push esi
or ebx, 0xffffffff
mov dword [esp + 0x24], ecx
xor esi, esi
push edi
lea ecx, [esp + 0x30]
mov dword [esp + 0x89c], eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
call fcn.00408b50
lea ecx, [esp + 0x30]
mov dword [esp + 0x8a8], esi
call fcn.00408b80
mov dword [esp + 0x50], eax
push 0x425909
push 0x42fe00
lea eax, [esp + 0x84]
push 0x4258a0
push eax
mov dword [esp + 0x8b8], 1
call fcn.0040ca29
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esp, 0x10
push esi
lea ecx, [esp + 0x80]
push ecx
call edi
push str.Captiv8UpdateBakDir
push 0x42fe00
lea edx, [esp + 0x84]
push 0x4258a0
push edx
call fcn.0040ca29
add esp, 0x10
push esi
lea eax, [esp + 0x80]
push eax
call edi
push str.Captiv8UpdateTmpDir
push 0x42fe00
lea ecx, [esp + 0x84]
push 0x4258a0
push ecx
call fcn.0040ca29
add esp, 0x10
push esi
lea edx, [esp + 0x80]
push edx
call edi
push str.C8GamePF.com
push str.Captiv8UpdateTmpDir
push 0x42fe00
lea eax, [esp + 0x88]
push str._s_s__s.zip
push eax
call fcn.0040ca29
push str.Captiv8UpdateTmpDir
push 0x42fe00
lea ecx, [esp + 0x6b0]
push 0x4258a0
push ecx
call fcn.0040ca29
lea edx, [esp + 0xa0]
push esi
push edx
call fcn.0040bb2d
add esp, 0x2c
cmp eax, ebx
je 0x4087e9
lea eax, [esp + 0x694]
push eax
lea ecx, [esp + 0x80]
push ecx
lea ecx, [esp + 0x38]
call fcn.00401560
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 0x7c]
push edx
mov ebp, eax
call esi
test ebp, ebp
jne 0x4087e9
push str.C8GamePF.com
push str.Captiv8UpdateTmpDir
push 0x42fe00
lea eax, [esp + 0x88]
push str._s_s__s
push eax
call fcn.0040ca29
add esp, 0x14
lea ecx, [esp + 0x7c]
push ecx
call esi
push str.C8GamePF.com
push str.Captiv8UpdateTmpDir
push 0x42fe00
lea edx, [esp + 0x498]
push str._s_s__s
push edx
call fcn.0040ca29
add esp, 0x14
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x490]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x408ada
push esi
call fcn.0041c246
add esp, 4
mov ebp, eax
push ebp
push esi
xor esi, esi
push esi
lea edx, [esp + 0x498]
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40887d
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0x425b48
push ebp
mov dword [esp + 0x20], esi
mov dword [esp + 0x2c], esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40887d
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], eax
push ebp
call fcn.0041c241
mov ecx, dword [esp + 0x24]
or eax, 0xffffffff
add esp, 4
cmp ecx, eax
jne 0x40889b
cmp dword [esp + 0x18], eax
je 0x40893e
push str.C8GamePF.com
push 0x425909
push 0x42fe00
lea ecx, [esp + 0x290]
push str._s_s__s
push ecx
call fcn.0040ca29
add esp, 0x14
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x288]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x408930
push esi
call fcn.0041c246
add esp, 4
mov ebp, eax
push ebp
push esi
xor esi, esi
push esi
lea ecx, [esp + 0x290]
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x408927
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x14]
push eax
push 0x425b48
push ebp
mov dword [esp + 0x20], esi
mov dword [esp + 0x2c], esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x408927
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x14]
mov ebx, dword [eax + 0x10]
mov dword [esp + 0x14], ecx
push ebp
call fcn.0041c241
add esp, 4
mov eax, dword [esp + 0x20]
cmp eax, ebx
jg 0x40894c
jne 0x408ada
mov edx, dword [esp + 0x18]
cmp edx, dword [esp + 0x14]
jle 0x408ada
lea ecx, [esp + 0x54]
call fcn.00409170
push 0x425909
push 0x42fe00
lea eax, [esp + 0x28c]
push str._s_s_
push eax
mov byte [esp + 0x8b8], 2
call fcn.0040ca29
push str.Captiv8UpdateBakDir
push 0x42fe00
lea ecx, [esp + 0x94]
push str._s_s_
push ecx
call fcn.0040ca29
push 0
push 1
lea edx, [esp + 0xa4]
push edx
lea eax, [esp + 0x2b0]
push eax
call fcn.00409840
add esp, 0x30
cmp ebx, 0xffffffff
jne 0x4089bc
cmp dword [esp + 0x14], ebx
je 0x408a10
push 0x425909
push 0x42fe00
lea ecx, [esp + 0x28c]
push str._s_s_
push ecx
call fcn.0040ca29
push str.Captiv8UpdateBakDir
push 0x42fe00
lea edx, [esp + 0x94]
push str._s_s_
push edx
call fcn.0040ca29
push 0
push 1
lea eax, [esp + 0xa4]
push eax
lea ecx, [esp + 0x2b0]
push ecx
call fcn.00409840
add esp, 0x30
push str.Captiv8UpdateTmpDir
push 0x42fe00
lea edx, [esp + 0x494]
push str._s_s_
push edx
call fcn.0040ca29
push 0x425909
push 0x42fe00
lea eax, [esp + 0x29c]
push str._s_s_
push eax
call fcn.0040ca29
push 1
push 0
push 0
lea ecx, [esp + 0x2b0]
push ecx
lea edx, [esp + 0x4bc]
push edx
call fcn.00408350
add esp, 0x34
push str.Captiv8UpdateBakDir
push 0x42fe00
test eax, eax
push str._s_s_
lea eax, [esp + 0x88]
push eax
jl 0x408aa6
call fcn.0040ca29
lea ecx, [esp + 0x8c]
push 1
push ecx
call fcn.00409b70
add esp, 0x18
push 0
lea edx, [esp + 0x80]
push edx
call edi
jmp 0x408ac9
call fcn.0040ca29
push 1
push 0
push 0
lea ecx, [esp + 0x2a0]
push ecx
lea edx, [esp + 0x9c]
push edx
call fcn.00408350
add esp, 0x24
lea ecx, [esp + 0x54]
mov byte [esp + 0x8a8], 1
call fcn.00409190
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x2c]
push eax
push 0
push ecx
push 0x407da0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
pop edi
pop esi
pop ebp
pop ebx
je 0x408b04
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x20]
mov dword [esp + 0x898], 0xffffffff
call fcn.00401500
mov ecx, dword [esp + 0x890]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x88c]
xor eax, eax
call fcn.0040b4bc
add esp, 0x89c
ret