Function at 0x40c4e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2ec
mov eax, dword [0x828208]
xor eax, esp
mov dword [esp + 0x2e8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x200
mov dword [esp + 0x18], eax
mov ebx, edx
lea eax, [esp + 0x74]
mov edi, ecx
push 0
push eax
call fcn.0048ff50
add esp, 0xc
mov dword [esp + 0x10], 0
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
push 0
push 0
push eax
call fcn.0042cbe0
add esp, 0xc
mov dword [esp + 0x30], 0x10002
lea eax, [esp + 0x30]
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
push eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0xfffffffd
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
call fcn.0043cbe0
add esp, 4
push 0x4000
call fcn.00499bf8
add esp, 4
mov esi, eax
push 0
push 0x4000
push esi
push 1
call fcn.0043cab0
push 0
call fcn.0043c980
add esp, 0x14
lea eax, [esp + 0x30]
push eax
call fcn.0043cbb0
add esp, 4
push esi
call fcn.00499bdd
mov eax, dword [esp + 0x48]
add esp, 4
test eax, eax
jne 0x40c8e5
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x14]
push eax
push 1
call fcn.0043cc40
mov eax, dword [esp + 0x1c]
add esp, 0xc
push dword [eax]
add eax, 4
push eax
call fcn.0042a160
push eax
call fcn.0042ae00
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov ecx, dword [edx]
mov dword [0x86c138], ecx
lea ecx, [edx + 4]
mov dword [0x86bdf0], ecx
push eax
mov eax, dword [eax + 8]
call eax
add esp, 4
push eax
call fcn.00429f80
add esp, 4
mov esi, eax
mov dword [esp + 0x28], esi
mov ecx, dword [esi]
push 0x4da4c2
push esi
call ecx
add esp, 8
test eax, eax
jne 0x40c91e
mov ebx, dword [esp + 0x14]
push str._n___________________________________________n
push ebx
call fcn.0040abf0
mov eax, dword [esi + 0xc]
push esi
call eax
add esp, 0xc
test eax, eax
jne 0x40c723
lea eax, [esp + 0x270]
push eax
push 0x80
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x68]
push eax
mov eax, dword [esi + 0x14]
push esi
call eax
add esp, 0x1c
test eax, eax
jne 0x40c723
mov eax, dword [0x8483c4]
mov esi, dword [eax + 0x28]
test esi, esi
je 0x40c70e
mov ebx, dword [esi + 8]
lea edx, [esp + 0x54]
mov eax, ebx
mov edi, 0xc
and eax, 0x22
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x18]
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x40c703
add edx, 4
add eax, 4
sub edi, 4
jae 0x40c6c8
test ebx, 0x8400
setne cl
test bl, 0x10
setne al
test al, cl
je 0x40c6f0
mov byte [esi + 0x7d], 1
cmp byte [esi + 0x7c], 0
je 0x40c703
cmp byte [esi + 0x7d], 0
je 0x40c703
cmp dword [esp + 0x20], 0
je 0x40c750
mov esi, dword [esi + 0x10]
test esi, esi
jne 0x40c6b0
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x28]
push esi
mov eax, dword [esi + 0x10]
call eax
add esp, 4
test eax, eax
je 0x40c672
push str._n___________________________________________n
push ebx
call fcn.0040abf0
mov eax, dword [esi + 4]
push esi
call eax
add esp, 0xc
xor ecx, ecx
nop dword [eax]
test ecx, ecx
je 0x40c8a0
mov ecx, dword [ecx + 0x10]
jmp 0x40c8a8
mov ecx, ebx
test ecx, 0x200000
je 0x40c76e
cmp dword [0x867ce8], 0
je 0x40c76e
lea edi, [esi + 0xa8]
jmp 0x40c877
test ecx, 0xc00000
je 0x40c858
mov eax, ecx
and al, 0x41
cmp al, 1
jne 0x40c858
shr ecx, 0x16
lea edi, [esi + 0xa8]
test al, cl
je 0x40c800
mov byte [esi + 0x7c], 0
movzx eax, word [esp + 0x6a]
push eax
movzx eax, word [esp + 0x6c]
push eax
movzx eax, word [esp + 0x6e]
push eax
movzx eax, word [esp + 0x70]
push eax
push str._X._X._X._X
push edi
call fcn.00402130
movzx eax, byte [esp + 0x82]
add esp, 0x18
mov dword [esi + 0x84], eax
movzx ecx, byte [esp + 0x68]
shl ecx, 8
or ecx, eax
mov dword [esi + 0x84], ecx
movzx eax, byte [esp + 0x66]
shl eax, 0x10
or eax, ecx
mov dword [esi + 0x84], eax
movzx ebx, word [esp + 0x64]
shl ebx, 0x18
or ebx, eax
mov dword [esi + 0x84], ebx
jmp 0x40c87a
movzx edx, word [esp + 0x64]
movzx ecx, word [esp + 0x66]
mov eax, edx
shl eax, 8
movzx ebx, cl
or ebx, eax
movzx eax, word [esp + 0x68]
shl ebx, 8
movzx eax, al
or ebx, eax
movzx eax, word [esp + 0x6a]
shl ebx, 8
movzx eax, al
or ebx, eax
test edi, edi
je 0x40c850
movzx eax, word [esp + 0x6a]
push eax
movzx eax, word [esp + 0x6c]
push eax
push ecx
push edx
push str.0x_02x_02x_02x_02x
push 0x20
push edi
call fcn.00415a40
add esp, 0x1c
mov dword [esi + 0x84], ebx
jmp 0x40c87a
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x28]
push eax
lea edi, [esi + 0xa8]
push 0x20
push edi
call fcn.0042a590
add esp, 0x10
test eax, eax
jne 0x40c87a
mov byte [edi], 0
mov ebx, dword [esp + 0x14]
lea eax, [esi + 0x88]
push eax
push edi
lea eax, [esi + 0xc8]
push eax
push str.__20s:_Current_Version:BCD:_s:_____New_Version:BCD:_s_n
push ebx
call fcn.0040abf0
add esp, 0x14
jmp 0x40c70e
mov eax, dword [0x8483c4]
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x40c91e
nop dword [eax]
mov eax, dword [ecx + 8]
shr eax, 0x16
and al, 1
jne 0x40c8d6
mov ecx, dword [ecx + 0x10]
test ecx, ecx
jne 0x40c8b0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2e8]
xor ecx, esp
call fcn.0048980e
mov esp, ebp
pop ebp
ret
cmp byte [ecx + 0x7c], 0
sete al
mov byte [ecx + 0x7c], al
jmp 0x40c740
push 0
xor edx, edx
mov ecx, 0x10000035
push 0x100
cmp eax, 0xffffffff
lea eax, [esp + 0x78]
push eax
push edx
je 0x40c903
mov ecx, 0x10000036
call fcn.00406e10
lea eax, [esp + 0x80]
mov edx, ebx
push 3
push eax
mov ecx, edi
call fcn.00408110
add esp, 0x18
mov ecx, dword [esp + 0x2f4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0048980e
mov esp, ebp
pop ebp
ret