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

Disassembly:
push 0xffffffffffffffff
push 0x45cb45
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x4762c4]
xor eax, esp
mov dword [esp + 0x164], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4762c4]
xor eax, esp
push eax
lea eax, [esp + 0x17c]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esp + 0x190]
test edi, edi
mov dword [esp + 0x184], 0
je 0x40c901
mov ecx, dword [esp + 0x194]
sub ecx, edi
mov eax, 0xea0ea0eb
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x40c906
call fcn.00440a0f
cmp dword [edi + 0x88], 0x10
jb 0x40c914
mov edi, dword [edi + 0x74]
jmp 0x40c917
add edi, 0x74
push str.ES_UNINST.INI
push edi
push str._s_s
lea ecx, [esp + 0x80]
push 0x104
push ecx
call fcn.00408310
add esp, 0x14
lea ebx, [esi + 0x82c]
lea edx, [esp + 0x74]
push edx
mov ecx, ebx
mov dword [esp + 0x18], ebx
call fcn.0042cda0
xor edi, edi
xor ebp, ebp
mov eax, dword [esi + 0x760]
test eax, eax
je 0x40cc71
mov ecx, dword [esi + 0x764]
sub ecx, eax
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x40cc71
mov eax, dword [esi + 0x760]
test eax, eax
je 0x40c9ab
mov ecx, dword [esi + 0x764]
sub ecx, eax
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x40c9b0
call fcn.00440a0f
mov eax, dword [esi + 0x760]
cmp dword [eax + ebp], 0
jne 0x40ca6b
test eax, eax
je 0x40c9e3
mov ecx, dword [esi + 0x764]
sub ecx, eax
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x40c9e8
call fcn.00440a0f
mov eax, dword [esi + 0x760]
add eax, ebp
push 0x462a84
add eax, 0x5c
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00406a50
add esp, 0xc
mov ebx, eax
mov eax, dword [esi + 0x760]
test eax, eax
mov byte [esp + 0x184], 1
je 0x40ca39
mov ecx, dword [esi + 0x764]
sub ecx, eax
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x40ca3e
call fcn.00440a0f
mov eax, dword [esi + 0x760]
sub esp, 0x1c
add eax, ebp
mov edx, esp
add eax, 8
mov dword [esp + 0x34], esp
push eax
push ebx
push edx
call fcn.0040a3d0
mov ecx, dword [esp + 0x3c]
add esp, 0xc
call fcn.0042b6c0
jmp 0x40cc46
test eax, eax
je 0x40ca8e
mov ecx, dword [esi + 0x764]
sub ecx, eax
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x40ca93
call fcn.00440a0f
mov ecx, dword [esi + 0x760]
cmp dword [ecx + ebp], 2
mov eax, ecx
jne 0x40cb68
test eax, eax
je 0x40cac8
mov ecx, dword [esi + 0x764]
sub ecx, eax
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x40cacd
call fcn.00440a0f
mov eax, dword [esi + 0x760]
add eax, ebp
push 0x462a84
add eax, 0x5c
push eax
lea edx, [esp + 0x24]
push edx
call fcn.00406a50
add esp, 0xc
mov ebx, eax
mov eax, dword [esi + 0x760]
test eax, eax
mov byte [esp + 0x184], 2
je 0x40cb1e
mov ecx, dword [esi + 0x764]
sub ecx, eax
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x40cb23
call fcn.00440a0f
mov eax, dword [esi + 0x760]
sub esp, 0x1c
add eax, ebp
mov ecx, esp
add eax, 8
mov dword [esp + 0x34], esp
push eax
push ebx
push ecx
call fcn.0040a3d0
mov ecx, dword [esp + 0x3c]
add esp, 0xc
call fcn.0042b800
cmp dword [esp + 0x34], 0x10
mov byte [esp + 0x184], 0
jb 0x40cc62
mov edx, dword [esp + 0x20]
push edx
jmp 0x40cc5a
test eax, eax
je 0x40cb8b
mov ecx, dword [esi + 0x764]
sub ecx, eax
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x40cb90
call fcn.00440a0f
mov eax, dword [esi + 0x760]
cmp dword [eax + ebp], 4
jne 0x40cc62
test eax, eax
je 0x40cbc3
mov ecx, dword [esi + 0x764]
sub ecx, eax
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x40cbc8
call fcn.00440a0f
mov eax, dword [esi + 0x760]
add eax, ebp
push 0x462a84
add eax, 0x5c
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00406a50
add esp, 0xc
mov ebx, eax
mov eax, dword [esi + 0x760]
test eax, eax
mov byte [esp + 0x184], 3
je 0x40cc19
mov ecx, dword [esi + 0x764]
sub ecx, eax
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x40cc1e
call fcn.00440a0f
mov eax, dword [esi + 0x760]
sub esp, 0x1c
add eax, ebp
mov edx, esp
add eax, 8
mov dword [esp + 0x34], esp
push eax
push ebx
push edx
call fcn.0040a3d0
mov ecx, dword [esp + 0x3c]
add esp, 0xc
call fcn.0042b940
cmp dword [esp + 0x34], 0x10
mov byte [esp + 0x184], 0
jb 0x40cc62
mov eax, dword [esp + 0x20]
push eax
call fcn.0042f837
add esp, 4
mov ebx, dword [esp + 0x14]
add edi, 1
add ebp, 0x78
jmp 0x40c951
xor edi, edi
xor ebp, ebp
jmp 0x40cc80
mov eax, dword [esi + 0x780]
test eax, eax
je 0x40ce3a
mov ecx, dword [esi + 0x784]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x40ce3a
mov eax, dword [esi + 0x780]
test eax, eax
je 0x40ccd6
mov ecx, dword [esi + 0x784]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x40ccdb
call fcn.00440a0f
mov ecx, dword [esi + 0x780]
cmp byte [ecx + ebp + 0x5c], 0
je 0x40ce2f
xor ecx, ecx
mov eax, 0xf
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], ecx
mov byte [esp + 0x40], cl
mov dword [esp + 0x70], eax
mov dword [esp + 0x6c], ecx
mov byte [esp + 0x5c], cl
mov eax, dword [esi + 0x780]
cmp eax, ecx
mov byte [esp + 0x184], 4
je 0x40cd3a
mov ecx, dword [esi + 0x784]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x40cd3f
call fcn.00440a0f
mov edx, dword [esi + 0x780]
mov eax, dword [edx + ebp]
mov dword [esp + 0x38], eax
mov eax, edx
test eax, eax
je 0x40cd6f
mov ecx, dword [esi + 0x784]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x40cd74
call fcn.00440a0f
mov ecx, dword [esi + 0x780]
push 0xffffffffffffffff
lea eax, [ecx + ebp + 4]
push 0
push eax
lea ecx, [esp + 0x48]
call fcn.00402d00
mov eax, dword [esi + 0x780]
test eax, eax
je 0x40cdb3
mov ecx, dword [esi + 0x784]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x40cdb8
call fcn.00440a0f
mov edx, dword [esi + 0x780]
push 0xffffffffffffffff
lea eax, [edx + ebp + 0x20]
push 0
push eax
lea ecx, [esp + 0x64]
call fcn.00402d00
sub esp, 0x3c
lea eax, [esp + 0x74]
mov ecx, esp
mov dword [esp + 0x54], esp
push eax
call fcn.00409bc0
mov ecx, ebx
call fcn.0042ca40
cmp dword [esp + 0x70], 0x10
mov byte [esp + 0x184], 0
jb 0x40ce06
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.0042f837
add esp, 4
cmp dword [esp + 0x54], 0x10
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], 0
mov byte [esp + 0x5c], 0
jb 0x40ce2f
mov edx, dword [esp + 0x40]
push edx
call fcn.0042f837
add esp, 4
add edi, 1
add ebp, 0x60
jmp 0x40cc80
xor ebp, ebp
xor edi, edi
mov bl, 5
mov ecx, dword [esi + 0x770]
test ecx, ecx
je 0x40cf36
mov eax, dword [esi + 0x774]
sub eax, ecx
sar eax, 5
cmp ebp, eax
jae 0x40cf36
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], 0
mov byte [esp + 0x40], 0
test ecx, ecx
mov byte [esp + 0x184], bl
je 0x40ce90
mov eax, dword [esi + 0x774]
sub eax, ecx
sar eax, 5
cmp ebp, eax
jb 0x40ce95
call fcn.00440a0f
mov eax, dword [esi + 0x770]
mov ecx, dword [edi + eax]
mov dword [esp + 0x38], ecx
mov ecx, eax
test ecx, ecx
je 0x40ceb7
mov eax, dword [esi + 0x774]
sub eax, ecx
sar eax, 5
cmp ebp, eax
jb 0x40cebc
call fcn.00440a0f
mov edx, dword [esi + 0x770]
push 0xffffffffffffffff
lea eax, [edi + edx + 4]
push 0
push eax
lea ecx, [esp + 0x48]
call fcn.00402d00
mov ecx, dword [esp + 0x38]
sub esp, 0x20
mov eax, esp
mov dword [esp + 0x38], esp
mov dword [eax], ecx
push 0xffffffffffffffff
lea ecx, [eax + 4]
push 0
lea edx, [esp + 0x64]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], 0
push edx
mov byte [ecx + 4], 0
call fcn.00402d00
mov ecx, dword [esp + 0x34]
call fcn.0042cc60
cmp dword [esp + 0x54], 0x10
mov byte [esp + 0x184], 0
jb 0x40cf2b
mov eax, dword [esp + 0x40]
push eax
call fcn.0042f837
add esp, 4
add ebp, 1
add edi, 0x20
jmp 0x40ce40
xor edi, edi
xor ebp, ebp
lea ebx, [ebx]
mov eax, dword [esi + 0x7a0]
test eax, eax
je 0x40cfdc
mov ecx, dword [esi + 0x7a4]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x40cfdc
mov eax, dword [esi + 0x7a0]
test eax, eax
je 0x40cf96
mov ecx, dword [esi + 0x7a4]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x40cf9b
call fcn.00440a0f
mov eax, dword [esi + 0x7a0]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0xffffffffffffffff
add eax, ebp
push 0
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], 0
push eax
mov byte [ecx + 4], 0
call fcn.00402d00
mov ecx, dword [esp + 0x30]
call fcn.0042ba80
add edi, 1
add ebp, 0x38
jmp 0x40cf40
xor ebp, ebp
xor ebx, ebx
mov eax, dword [esi + 0x790]
test eax, eax
je 0x40d125
mov ecx, dword [esi + 0x794]
sub ecx, eax
mov eax, 0xea0ea0eb
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jae 0x40d125
mov eax, dword [esi + 0x790]
test eax, eax
je 0x40d03a
mov ecx, dword [esi + 0x794]
sub ecx, eax
mov eax, 0xea0ea0eb
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x40d03f
call fcn.00440a0f
mov eax, dword [esi + 0x790]
add eax, ebx
push 0x462a84
add eax, 0x1c
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.00406a50
add esp, 0xc
mov edi, eax
mov eax, dword [esi + 0x790]
test eax, eax
mov byte [esp + 0x184], 6
je 0x40d090
mov ecx, dword [esi + 0x794]
sub ecx, eax
mov eax, 0xea0ea0eb
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x40d095
call fcn.00440a0f
mov eax, dword [esi + 0x790]
add eax, ebx
push eax
lea edx, [esp + 0x20]
push edi
push edx
call fcn.0040a3d0
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x34], esp
push str..lnk
push eax
push ecx
mov byte [esp + 0x1ac], 7
call fcn.00406a50
mov ecx, dword [esp + 0x3c]
add esp, 0xc
call fcn.0042bbc0
cmp dword [esp + 0x34], 0x10
jb 0x40d0e6
mov edx, dword [esp + 0x20]
push edx
call fcn.0042f837
add esp, 4
cmp dword [esp + 0x50], 0x10
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
mov byte [esp + 0x184], 0
jb 0x40d117
mov eax, dword [esp + 0x3c]
push eax
call fcn.0042f837
add esp, 4
add ebp, 1
add ebx, 0x8c
jmp 0x40cfe0
mov ebx, dword [esp + 0x14]
xor edi, edi
xor ebp, ebp
lea ecx, [ecx]
mov eax, dword [esi + 0x7c0]
test eax, eax
je 0x40d1ca
mov ecx, dword [esi + 0x7c4]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x40d1ca
mov eax, dword [esi + 0x7c0]
test eax, eax
je 0x40d186
mov ecx, dword [esi + 0x7c4]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x40d18b
call fcn.00440a0f
mov eax, dword [esi + 0x7c0]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0xffffffffffffffff
add eax, ebp
push 0
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], 0
push eax
mov byte [ecx + 4], 0
call fcn.00402d00
mov ecx, ebx
call fcn.0042bd00
add edi, 1
add ebp, 0x1c
jmp 0x40d130
xor edi, edi
xor ebp, ebp
mov edi, edi
mov eax, dword [esi + 0x7f0]
test eax, eax
je 0x40d26a
mov ecx, dword [esi + 0x7f4]
sub ecx, eax
mov eax, 0x8d3dcb09
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x40d26a
mov eax, dword [esi + 0x7f0]
test eax, eax
je 0x40d226
mov ecx, dword [esi + 0x7f4]
sub ecx, eax
mov eax, 0x8d3dcb09
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x40d22b
call fcn.00440a0f
mov eax, dword [esi + 0x7f0]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0xffffffffffffffff
add eax, ebp
push 0
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], 0
push eax
mov byte [ecx + 4], 0
call fcn.00402d00
mov ecx, ebx
call fcn.0042be40
add edi, 1
add ebp, 0x74
jmp 0x40d1d0
lea ecx, [esp + 0x74]
push ecx
mov ecx, ebx
call fcn.00429560
mov edi, dword [esp + 0x190]
test edi, edi
mov bl, al
je 0x40d2aa
mov ebp, dword [esp + 0x194]
cmp edi, ebp
mov esi, edi
je 0x40d2a1
mov ecx, esi
call fcn.00409870
add esi, 0x8c
cmp esi, ebp
jne 0x40d290
push edi
call fcn.0042f837
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x17c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x164]
xor ecx, esp
call fcn.00440494
add esp, 0x174
ret 0x10