Function at 0x40c670
Capabilities:
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x435b63
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xea8
mov eax, dword [0x4472e0]
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xeac], eax
mov eax, dword [esi + 0x164]
xor edi, edi
push 0x43a21c
lea ecx, [esi + 0xf4]
mov dword [esi + 0x170], edi
call fcn.0042b74f
lea eax, [esp + 0x48]
push eax
mov ecx, esi
call fcn.0040b850
push str.updateinfo.ini
push eax
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0xec8], edi
call fcn.00401bf0
add esp, 0xc
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
mov byte [esp + 0xebc], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c70c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ebx, dword [esp + 0x14]
xor eax, eax
mov byte [esp + 0x70], 0
mov ecx, 0x40
lea edi, [esp + 0x71]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
push 0x104
stosb byte es:[edi], al
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x78]
push eax
push 0x43a208
push str.size
push str.Config
call edi
lea ecx, [esp + 0x70]
push ecx
call fcn.0041a31c
add esp, 4
push ebx
push 0x104
lea edx, [esp + 0x78]
push edx
push 0x437c6b
push 0x43a1fc
push str.Config
call edi
lea eax, [esp + 0x70]
push eax
call fcn.0041a31c
add esp, 4
lea ecx, [esp + 0x20]
mov edi, eax
call fcn.0042c618
cmp edi, dword [esi + 0x160]
mov byte [esp + 0xebc], 3
push 0
jne 0x40c7a6
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
push 0x3041
jmp 0x40c7b0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push 0x1041
lea ecx, [esp + 0x28]
push eax
call fcn.0042c8b0
test eax, eax
lea ecx, [esp + 0x20]
jne 0x40c7d7
mov byte [esp + 0xebc], 2
call fcn.0042c657
lea eax, [ebx - 0x10]
jmp 0x40cd21
call fcn.0042c510
lea ecx, [esp + 0x178]
mov dword [esi + 0x15c], eax
call fcn.00401fe0
mov byte [esp + 0xebc], 4
call fcn.004276cb
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov bl, 5
mov byte [esp + 0xebc], bl
call fcn.004276cb
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x144]
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x4c]
push edx
push eax
mov byte [esp + 0xed0], 6
call fcn.00430873
mov eax, dword [esp + 0x40]
mov ecx, dword [esi + 0x15c]
push eax
mov eax, dword [esp + 0x1c]
push 0
push ecx
mov ecx, dword [esp + 0x1c]
push 0
push 0
lea edx, [esp + 0x60]
push edx
push eax
push ecx
lea ecx, [esp + 0x198]
call fcn.004020b0
lea ecx, [esp + 0x178]
call fcn.00402050
movzx edx, word [esp + 0x38]
mov eax, dword [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x180]
call fcn.00402740
test eax, eax
jne 0x40c8be
lea ecx, [esp + 0x20]
call fcn.0042c5b6
mov ecx, dword [ebp + 0xc]
push 0x10
push 0x43a1e8
call fcn.00401a30
jmp 0x40ccaa
push 0
push 0
lea ecx, [esp + 0x180]
call fcn.00402860
test eax, eax
jne 0x40c8e5
lea ecx, [esp + 0x20]
call fcn.0042c5b6
push 0x43a1d0
jmp 0x40cca2
push 0
push 0
lea ecx, [esp + 0x180]
call fcn.00402580
lea ecx, [esp + 0x178]
call fcn.004026a0
cmp eax, 0xffffffff
je 0x40cc94
cmp eax, 0x190
jge 0x40cc94
push 0x1e
lea eax, [esp + 0x54]
push eax
push 0x43a1c0
lea ecx, [esp + 0x184]
call fcn.00402ad0
lea ecx, [esp + 0x50]
push ecx
call fcn.0041a31c
mov ebx, dword [esi + 0x15c]
mov edi, eax
add edi, ebx
add esp, 4
lea ebx, [esi + 0x74]
push 1
mov ecx, ebx
mov dword [esp + 0x40], edi
call fcn.0042b7c9
mov eax, edi
cdq
and edx, 0x3ff
add eax, edx
sar eax, 0xa
push eax
push 0
mov ecx, ebx
call fcn.004056d0
mov eax, dword [esi + 0x15c]
cdq
push 0
push edx
push eax
lea ecx, [esp + 0x2c]
call fcn.0042c3b6
lea ecx, [esp + 0x1c]
call fcn.00401950
mov edx, dword [esi + 0x158]
push edx
lea eax, [esp + 0x20]
push 0x437a04
push eax
mov byte [esp + 0xec8], 7
call fcn.004032f0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
add esp, 0xc
push ecx
push edx
push str.size
push str.Config
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [esi + 0x160]
push eax
lea ecx, [esp + 0x20]
push 0x437a04
push ecx
call fcn.004032f0
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
add esp, 0xc
push edx
push eax
push 0x43a1fc
push str.Config
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [esi + 0x1c]
push 0
push 0x1f4
push 0x2712
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x44], eax
cmp dword [esi + 0x15c], edi
jl 0x40cad0
lea ecx, [esp + 0x20]
call fcn.0042c5b6
mov eax, dword [esi + 0x1c]
push 0x2712
push eax
call dword [sym.imp.USER32.dll_KillTimer]
push 0x437c6b
lea ecx, [esi + 0xf4]
call fcn.0042b74f
push 0x437c6b
push 0x3f1
mov ecx, esi
call fcn.0042b676
mov ecx, eax
call fcn.0042b74f
push 0
mov ecx, ebx
call fcn.0042b7c9
push 0
mov ecx, ebx
call fcn.00405ae0
lea ecx, [esp + 0x1c]
call fcn.00401370
lea ecx, [esp + 0x18]
call fcn.00401370
lea ecx, [esp + 0x10]
call fcn.00401370
lea ecx, [esp + 0x178]
mov byte [esp + 0xebc], 3
call fcn.004026e0
lea ecx, [esp + 0x20]
mov byte [esp + 0xebc], 2
call fcn.0042c657
lea ecx, [esp + 0x14]
call fcn.00401370
mov eax, 1
jmp 0x40cd45
mov edi, dword [esp + 0x3c]
lea esp, [esp]
push 0x400
lea edx, [esp + 0xaac]
push edx
lea ecx, [esp + 0x180]
call fcn.004028f0
test eax, eax
mov dword [esp + 0x30], eax
je 0x40cbe3
cmp eax, 0xffffffff
je 0x40cbfb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 0xaac]
push ecx
lea ecx, [esp + 0x28]
call fcn.0042c36b
mov eax, dword [esi + 0x15c]
mov edx, dword [esp + 0x30]
add eax, edx
mov dword [esi + 0x15c], eax
cdq
and edx, 0x3ff
add eax, edx
sar eax, 0xa
push eax
mov ecx, ebx
call fcn.00405ae0
mov ecx, dword [esp + 0x44]
fild dword [esi + 0x15c]
sub edi, ecx
test edi, edi
mov dword [esp + 0x30], edi
fild dword [esp + 0x30]
jge 0x40cb60
fadd qword [0x43a1b8]
fmul qword [0x43a1b0]
sub esp, 8
lea eax, [esp + 0x3c]
mov ecx, esi
fdivp st(1)
fstp qword [esp]
push eax
call fcn.0040b720
lea edi, [esi + 0x17c]
push eax
mov ecx, edi
mov byte [esp + 0xec0], 9
call fcn.00401b80
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0xebc], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cbb6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 2
push 0x43a1ac
mov ecx, edi
call fcn.00404330
mov eax, dword [esi + 0x178]
test eax, eax
jne 0x40cc46
mov eax, dword [esp + 0x3c]
cmp dword [esi + 0x15c], eax
jl 0x40cac8
jmp 0x40ca23
lea ecx, [esp + 0x20]
call fcn.0042c5b6
mov ecx, dword [ebp + 0xc]
push 0x43a194
call fcn.00402a90
jmp 0x40cc46
lea ecx, [esp + 0x20]
call fcn.0042c5b6
mov ecx, dword [esi + 0x15c]
mov esi, dword [ebp + 0xc]
push edi
push ecx
push str._d__d
push esi
call fcn.004032f0
push esi
lea edx, [esp + 0x48]
push 0x43a17c
push edx
call fcn.00403310
add esp, 0x1c
push eax
mov ecx, esi
mov byte [esp + 0xec0], 8
call fcn.00401cb0
lea ecx, [esp + 0x34]
call fcn.00401370
lea ecx, [esp + 0x1c]
call fcn.00401370
lea ecx, [esp + 0x18]
call fcn.00401370
lea ecx, [esp + 0x10]
call fcn.00401370
lea ecx, [esp + 0x178]
mov byte [esp + 0xebc], 3
call fcn.004026e0
lea ecx, [esp + 0x20]
mov byte [esp + 0xebc], 2
call fcn.0042c657
lea ecx, [esp + 0x14]
call fcn.00401370
jmp 0x40cd43
lea ecx, [esp + 0x20]
call fcn.0042c5b6
push 0x43a168
mov ecx, dword [ebp + 0xc]
call fcn.00402a90
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0xebc], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cccf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0xebc], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ccf5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x178]
mov byte [esp + 0xebc], 3
call fcn.004026e0
lea ecx, [esp + 0x20]
mov byte [esp + 0xebc], 2
call fcn.0042c657
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0xebc], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cd43
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
mov ecx, dword [esp + 0xeb4]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xeac]
call fcn.00419e6b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8