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

Disassembly:
push 0xffffffffffffffff
push 0x45cb85
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 0x40c891
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 0x40c896
call fcn.00440a4f
cmp dword [edi + 0x88], 0x10
jb 0x40c8a4
mov edi, dword [edi + 0x74]
jmp 0x40c8a7
add edi, 0x74
push str.ES_UNINST.INI
push edi
push str._s_s
lea ecx, [esp + 0x80]
push 0x104
push ecx
call fcn.00408330
add esp, 0x14
lea ebx, [esi + 0x82c]
lea edx, [esp + 0x74]
push edx
mov ecx, ebx
mov dword [esp + 0x18], ebx
call fcn.0042cde0
xor edi, edi
xor ebp, ebp
mov eax, dword [esi + 0x760]
test eax, eax
je 0x40cc01
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 0x40cc01
mov eax, dword [esi + 0x760]
test eax, eax
je 0x40c93b
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 0x40c940
call fcn.00440a4f
mov eax, dword [esi + 0x760]
cmp dword [eax + ebp], 0
jne 0x40c9fb
test eax, eax
je 0x40c973
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 0x40c978
call fcn.00440a4f
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 0x40c9c9
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 0x40c9ce
call fcn.00440a4f
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.0040a3f0
mov ecx, dword [esp + 0x3c]
add esp, 0xc
call fcn.0042b700
jmp 0x40cbd6
test eax, eax
je 0x40ca1e
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 0x40ca23
call fcn.00440a4f
mov ecx, dword [esi + 0x760]
cmp dword [ecx + ebp], 2
mov eax, ecx
jne 0x40caf8
test eax, eax
je 0x40ca58
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 0x40ca5d
call fcn.00440a4f
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 0x40caae
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 0x40cab3
call fcn.00440a4f
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.0040a3f0
mov ecx, dword [esp + 0x3c]
add esp, 0xc
call fcn.0042b840
cmp dword [esp + 0x34], 0x10
mov byte [esp + 0x184], 0
jb 0x40cbf2
mov edx, dword [esp + 0x20]
push edx
jmp 0x40cbea
test eax, eax
je 0x40cb1b
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 0x40cb20
call fcn.00440a4f
mov eax, dword [esi + 0x760]
cmp dword [eax + ebp], 4
jne 0x40cbf2
test eax, eax
je 0x40cb53
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 0x40cb58
call fcn.00440a4f
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 0x40cba9
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 0x40cbae
call fcn.00440a4f
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.0040a3f0
mov ecx, dword [esp + 0x3c]
add esp, 0xc
call fcn.0042b980
cmp dword [esp + 0x34], 0x10
mov byte [esp + 0x184], 0
jb 0x40cbf2
mov eax, dword [esp + 0x20]
push eax
call fcn.0042f877
add esp, 4
mov ebx, dword [esp + 0x14]
add edi, 1
add ebp, 0x78
jmp 0x40c8e1
xor edi, edi
xor ebp, ebp
jmp 0x40cc10
mov eax, dword [esi + 0x780]
test eax, eax
je 0x40cdca
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 0x40cdca
mov eax, dword [esi + 0x780]
test eax, eax
je 0x40cc66
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 0x40cc6b
call fcn.00440a4f
mov ecx, dword [esi + 0x780]
cmp byte [ecx + ebp + 0x5c], 0
je 0x40cdbf
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 0x40ccca
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 0x40cccf
call fcn.00440a4f
mov edx, dword [esi + 0x780]
mov eax, dword [edx + ebp]
mov dword [esp + 0x38], eax
mov eax, edx
test eax, eax
je 0x40ccff
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 0x40cd04
call fcn.00440a4f
mov ecx, dword [esi + 0x780]
push 0xffffffffffffffff
lea eax, [ecx + ebp + 4]
push 0
push eax
lea ecx, [esp + 0x48]
call fcn.00402c60
mov eax, dword [esi + 0x780]
test eax, eax
je 0x40cd43
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 0x40cd48
call fcn.00440a4f
mov edx, dword [esi + 0x780]
push 0xffffffffffffffff
lea eax, [edx + ebp + 0x20]
push 0
push eax
lea ecx, [esp + 0x64]
call fcn.00402c60
sub esp, 0x3c
lea eax, [esp + 0x74]
mov ecx, esp
mov dword [esp + 0x54], esp
push eax
call fcn.00409be0
mov ecx, ebx
call fcn.0042ca80
cmp dword [esp + 0x70], 0x10
mov byte [esp + 0x184], 0
jb 0x40cd96
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.0042f877
add esp, 4
cmp dword [esp + 0x54], 0x10
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], 0
mov byte [esp + 0x5c], 0
jb 0x40cdbf
mov edx, dword [esp + 0x40]
push edx
call fcn.0042f877
add esp, 4
add edi, 1
add ebp, 0x60
jmp 0x40cc10
xor ebp, ebp
xor edi, edi
mov bl, 5
mov ecx, dword [esi + 0x770]
test ecx, ecx
je 0x40cec6
mov eax, dword [esi + 0x774]
sub eax, ecx
sar eax, 5
cmp ebp, eax
jae 0x40cec6
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], 0
mov byte [esp + 0x40], 0
test ecx, ecx
mov byte [esp + 0x184], bl
je 0x40ce20
mov eax, dword [esi + 0x774]
sub eax, ecx
sar eax, 5
cmp ebp, eax
jb 0x40ce25
call fcn.00440a4f
mov eax, dword [esi + 0x770]
mov ecx, dword [edi + eax]
mov dword [esp + 0x38], ecx
mov ecx, eax
test ecx, ecx
je 0x40ce47
mov eax, dword [esi + 0x774]
sub eax, ecx
sar eax, 5
cmp ebp, eax
jb 0x40ce4c
call fcn.00440a4f
mov edx, dword [esi + 0x770]
push 0xffffffffffffffff
lea eax, [edi + edx + 4]
push 0
push eax
lea ecx, [esp + 0x48]
call fcn.00402c60
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.00402c60
mov ecx, dword [esp + 0x34]
call fcn.0042cca0
cmp dword [esp + 0x54], 0x10
mov byte [esp + 0x184], 0
jb 0x40cebb
mov eax, dword [esp + 0x40]
push eax
call fcn.0042f877
add esp, 4
add ebp, 1
add edi, 0x20
jmp 0x40cdd0
xor edi, edi
xor ebp, ebp
lea ebx, [ebx]
mov eax, dword [esi + 0x7a0]
test eax, eax
je 0x40cf6c
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 0x40cf6c
mov eax, dword [esi + 0x7a0]
test eax, eax
je 0x40cf26
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 0x40cf2b
call fcn.00440a4f
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.00402c60
mov ecx, dword [esp + 0x30]
call fcn.0042bac0
add edi, 1
add ebp, 0x38
jmp 0x40ced0
xor ebp, ebp
xor ebx, ebx
mov eax, dword [esi + 0x790]
test eax, eax
je 0x40d0b5
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 0x40d0b5
mov eax, dword [esi + 0x790]
test eax, eax
je 0x40cfca
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 0x40cfcf
call fcn.00440a4f
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 0x40d020
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 0x40d025
call fcn.00440a4f
mov eax, dword [esi + 0x790]
add eax, ebx
push eax
lea edx, [esp + 0x20]
push edi
push edx
call fcn.0040a3f0
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.0042bc00
cmp dword [esp + 0x34], 0x10
jb 0x40d076
mov edx, dword [esp + 0x20]
push edx
call fcn.0042f877
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 0x40d0a7
mov eax, dword [esp + 0x3c]
push eax
call fcn.0042f877
add esp, 4
add ebp, 1
add ebx, 0x8c
jmp 0x40cf70
mov ebx, dword [esp + 0x14]
xor edi, edi
xor ebp, ebp
lea ecx, [ecx]
mov eax, dword [esi + 0x7c0]
test eax, eax
je 0x40d15a
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 0x40d15a
mov eax, dword [esi + 0x7c0]
test eax, eax
je 0x40d116
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 0x40d11b
call fcn.00440a4f
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.00402c60
mov ecx, ebx
call fcn.0042bd40
add edi, 1
add ebp, 0x1c
jmp 0x40d0c0
xor edi, edi
xor ebp, ebp
mov edi, edi
mov eax, dword [esi + 0x7f0]
test eax, eax
je 0x40d1fa
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 0x40d1fa
mov eax, dword [esi + 0x7f0]
test eax, eax
je 0x40d1b6
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 0x40d1bb
call fcn.00440a4f
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.00402c60
mov ecx, ebx
call fcn.0042be80
add edi, 1
add ebp, 0x74
jmp 0x40d160
lea ecx, [esp + 0x74]
push ecx
mov ecx, ebx
call fcn.004295a0
mov edi, dword [esp + 0x190]
test edi, edi
mov bl, al
je 0x40d23a
mov ebp, dword [esp + 0x194]
cmp edi, ebp
mov esi, edi
je 0x40d231
mov ecx, esi
call fcn.00409890
add esi, 0x8c
cmp esi, ebp
jne 0x40d220
push edi
call fcn.0042f877
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.004404d4
add esp, 0x174
ret 0x10