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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov esi, ecx
mov eax, dword [0x488050]
test eax, eax
jne 0x40cfae
mov eax, 0xea56dc31
xor eax, dword [0x466df0]
mov dword [0x466e1c], eax
mov eax, dword [0x466df4]
lea ecx, [eax + eax]
and ecx, 0xb5828354
neg ecx
add eax, ecx
add eax, 0xdac141aa
mov dword [0x466e20], eax
mov eax, 0x57e0bd46
xor eax, dword [0x466df8]
mov dword [0x466e24], eax
mov eax, 0x6e2d8cf
xor eax, dword [0x466dfc]
mov dword [0x466e28], eax
mov eax, 0xad7651dd
xor eax, dword [0x466e00]
mov dword [0x466e2c], eax
mov eax, 0xb4312a1b
xor eax, dword [0x466e04]
mov dword [0x466e30], eax
mov eax, 0xb7eb80b
xor eax, dword [0x466e08]
mov dword [0x466e34], eax
mov dword [0x488050], 1
test byte [esi + 0xa], 8
jne 0x40cfcc
mov dword [esp], 0
cmp dword [esi], 0
jne 0x40cff9
jmp 0x40cfe0
mov eax, dword [esi + 0x1c]
sub eax, dword [esi + 0x40]
cmp eax, dword [esi + 0x24]
setbe al
mov dword [esp], eax
cmp dword [esi], 0
jne 0x40cff9
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi + 0x8c]
mov eax, dword [eax]
sub eax, ecx
cmp eax, 0x14ccc
jb 0x40cff9
add ecx, dword [esi + 0x74]
jmp 0x40cfff
lea ecx, [esi + 0x39272]
mov dword [esi + 0x30], ecx
mov dword [esp + 0x10], ecx
lea eax, [ecx + 0x14cbc]
mov dword [esi + 0x34], eax
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
mov eax, dword [esi + 0x2c]
movzx ebx, byte [eax]
movzx ecx, byte [esi + 0x38]
shr ebx, cl
mov byte [eax], bl
mov ecx, dword [esi + 8]
xor eax, eax
cmp dword [esi + 0x38], 8
sete al
sub dword [esi + 0x28], eax
test ecx, 0x1000
je 0x40d04c
cmp dword [esi + 0x64], 0
je 0x40d17c
xor eax, eax
mov dword [esp + 4], edx
cmp edx, 4
sete al
mov ebx, dword [esi + 0x44]
mov ecx, ebx
shl eax, cl
lea ecx, [esi + 0x44]
mov dword [esp + 8], ecx
lea edi, [esi + 0x48]
or eax, dword [esi + 0x48]
mov ebp, eax
mov dword [esi + 0x48], eax
inc ebx
mov dword [esi + 0x44], ebx
cmp ebx, 8
jb 0x40d0b1
mov edx, dword [esp]
jmp 0x40d0a5
lea ecx, [eax + 1]
mov dword [esi + 0x30], ecx
mov ecx, ebp
mov byte [eax], cl
mov ebx, dword [esi + 0x44]
mov eax, dword [esi + 0x48]
shr eax, 8
mov ebp, eax
mov dword [edi], eax
add ebx, 0xfffffff8
mov eax, dword [esp + 8]
mov dword [eax], ebx
cmp ebx, 7
jbe 0x40d0b4
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jb 0x40d080
mov eax, ebp
jmp 0x40d090
mov edx, dword [esp]
mov eax, dword [esi + 0x30]
mov dword [esp + 0xc], eax
xor eax, eax
test dl, dl
mov dword [esp], edi
jne 0x40d0f0
mov al, 1
test byte [esi + 0xa], 4
jne 0x40d0d3
cmp dword [esi + 0x3c], 0x30
setb al
movzx edx, al
mov ecx, esi
call fcn.0040fd40
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x40d0fb
mov edx, dword [esi + 0x30]
sub edx, dword [esp + 0xc]
inc edx
cmp edx, ecx
jb 0x40d0fb
mov ecx, dword [esi + 0x1c]
sub ecx, dword [esi + 0x40]
cmp ecx, dword [esi + 0x24]
jbe 0x40d121
test eax, eax
jne 0x40d418
mov eax, dword [esp + 0xc]
mov dword [esi + 0x30], eax
mov dword [esi + 0x48], ebp
mov dword [esi + 0x44], ebx
mov ecx, esi
mov edx, 1
call fcn.0040fd40
jmp 0x40d418
mov eax, dword [esp + 0xc]
mov dword [esi + 0x30], eax
mov eax, ebp
mov dword [esi + 0x48], ebp
lea eax, [ebx + 2]
mov dword [esi + 0x44], eax
cmp ebx, 6
jb 0x40d289
mov ebx, ebp
mov ebp, dword [esp + 8]
jmp 0x40d164
shr ebx, 8
mov dword [edi], ebx
add eax, 0xfffffff8
mov dword [ebp], eax
cmp eax, 7
jbe 0x40d291
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x40d150
lea eax, [ecx + 1]
mov dword [esi + 0x30], eax
mov byte [ecx], bl
mov eax, dword [esi + 0x44]
mov ebx, dword [esi + 0x48]
jmp 0x40d150
and ecx, 0xfff
mov eax, 0x7800
cmp dword [0x466e1c], ecx
je 0x40d1cf
cmp dword [0x466e20], ecx
je 0x40d1cf
mov eax, 0x7840
cmp dword [0x466e24], ecx
je 0x40d1cf
cmp dword [0x466e28], ecx
je 0x40d1cf
cmp dword [0x466e2c], ecx
je 0x40d1cf
cmp dword [0x466e30], ecx
je 0x40d1cf
xor eax, eax
cmp dword [0x466e34], ecx
setne al
shl eax, 6
or eax, 0x7880
imul ecx, eax, 0x4211
shr ecx, 0x13
mov edi, ecx
shl edi, 5
sub ecx, edi
add ecx, eax
movzx edi, cx
add eax, edi
mov ecx, dword [esi + 0x44]
mov ebx, pe_nt_image_headers32
shl ebx, cl
add edi, edi
xor edi, 0x3e
or ebx, dword [esi + 0x48]
add eax, edi
add eax, 0xe1
mov dword [esi + 0x48], ebx
mov edi, ecx
and edi, 8
xor ecx, 8
lea ecx, [ecx + edi*2]
mov dword [esi + 0x44], ecx
cmp ecx, 8
jae 0x40d271
movzx eax, al
shl eax, cl
or eax, ebx
mov dword [esi + 0x48], eax
or ecx, 8
mov dword [esi + 0x44], ecx
jmp 0x40d245
shr eax, 8
mov dword [esi + 0x48], eax
add ecx, 0xfffffff8
mov dword [esi + 0x44], ecx
cmp ecx, 7
jbe 0x40d04c
mov edi, dword [esi + 0x30]
cmp edi, dword [esi + 0x34]
jae 0x40d230
lea ecx, [edi + 1]
mov dword [esi + 0x30], ecx
mov byte [edi], al
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x48]
jmp 0x40d230
shr ebx, 8
mov dword [esi + 0x48], ebx
add ecx, 0xfffffff8
mov dword [esi + 0x44], ecx
cmp ecx, 7
jbe 0x40d215
mov edi, dword [esi + 0x30]
cmp edi, dword [esi + 0x34]
jae 0x40d260
lea ecx, [edi + 1]
mov dword [esi + 0x30], ecx
mov byte [edi], bl
mov ecx, dword [esi + 0x44]
mov ebx, dword [esi + 0x48]
jmp 0x40d260
mov ebx, ebp
mov ebp, dword [esp + 8]
jmp 0x40d295
test eax, eax
je 0x40d2d8
mov dword [ebp], 8
mov ecx, 8
jmp 0x40d2c0
shr ebx, 8
mov dword [edi], ebx
add ecx, 0xfffffff8
mov dword [ebp], ecx
cmp ecx, 7
jbe 0x40d2da
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x40d2b0
lea ecx, [eax + 1]
mov dword [esi + 0x30], ecx
mov byte [eax], bl
mov ecx, dword [esi + 0x44]
mov ebx, dword [esi + 0x48]
jmp 0x40d2b0
xor ecx, ecx
mov edx, dword [esi + 0x3c]
mov eax, edx
xor eax, 0xffff0000
or edx, 0xffff
and edx, eax
shl edx, cl
or edx, ebx
mov dword [esi + 0x48], edx
or ecx, 0x10
mov dword [esi + 0x44], ecx
jmp 0x40d319
shr edx, 8
mov dword [edi], edx
mov eax, ecx
and eax, 0xfffffff7
xor ecx, 0xfffffff7
lea ecx, [ecx + eax*2]
inc ecx
mov dword [ebp], ecx
cmp ecx, 7
jbe 0x40d331
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x40d300
lea ecx, [eax + 1]
mov dword [esi + 0x30], ecx
mov byte [eax], dl
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x48]
jmp 0x40d300
mov eax, dword [esi + 0x3c]
mov ebx, eax
not ebx
xor eax, 0xffff
mov dword [esi + 0x3c], eax
movzx eax, bx
shl eax, cl
or eax, edx
mov dword [esi + 0x48], eax
add ecx, 0x10
mov dword [esi + 0x44], ecx
jmp 0x40d379
shr eax, 8
mov dword [edi], eax
mov edx, ecx
and edx, 0xfffffff7
xor ecx, 0xfffffff7
lea ecx, [ecx + edx*2]
inc ecx
mov dword [ebp], ecx
cmp ecx, 7
jbe 0x40d391
mov edx, dword [esi + 0x30]
cmp edx, dword [esi + 0x34]
jae 0x40d360
lea ecx, [edx + 1]
mov dword [esi + 0x30], ecx
mov byte [edx], al
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x48]
jmp 0x40d360
xor dword [esi + 0x3c], 0xffff
je 0x40d418
xor edx, edx
mov ebp, dword [esp + 8]
jmp 0x40d3b6
inc edx
cmp edx, dword [esi + 0x3c]
jae 0x40d418
mov ebx, dword [esi + 0x40]
mov edi, ebx
and edi, edx
xor ebx, edx
lea edi, [ebx + edi*2]
mov ebx, edi
not ebx
or ebx, 0x7fff
add ebx, edi
movzx edi, byte [esi + ebx + 0x91]
shl edi, cl
or eax, edi
mov edi, dword [esp]
mov dword [esi + 0x48], eax
add ecx, 8
mov dword [esi + 0x44], ecx
jmp 0x40d400
shr eax, 8
mov dword [edi], eax
add ecx, 0xfffffff8
mov dword [ebp], ecx
cmp ecx, 7
jbe 0x40d3b0
mov ebx, dword [esi + 0x30]
cmp ebx, dword [esi + 0x34]
jae 0x40d3f0
lea ecx, [ebx + 1]
mov dword [esi + 0x30], ecx
mov byte [ebx], al
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x48]
jmp 0x40d3f0
mov eax, dword [esp + 4]
test eax, eax
mov ebp, dword [esp + 8]
je 0x40d523
cmp eax, 4
jne 0x40d47b
cmp dword [ebp], 0
je 0x40d517
mov dword [ebp], 8
mov ecx, 8
jmp 0x40d462
shr dword [edi], 8
add ecx, 0xfffffff8
mov dword [ebp], ecx
cmp ecx, 7
jbe 0x40d519
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x40d450
movzx ecx, byte [esi + 0x48]
lea edx, [eax + 1]
mov dword [esi + 0x30], edx
mov byte [eax], cl
mov ecx, dword [esi + 0x44]
jmp 0x40d450
mov eax, dword [ebp]
add eax, 3
mov dword [ebp], eax
cmp eax, 8
jae 0x40d4ce
test eax, eax
je 0x40d6dc
mov ecx, 8
sub ecx, eax
mov edx, ecx
and edx, eax
xor ecx, eax
lea ecx, [ecx + edx*2]
mov dword [ebp], ecx
cmp ecx, 8
jae 0x40d4fe
or ecx, 0x10
jmp 0x40d6e1
shr dword [edi], 8
add eax, 0xfffffff8
mov dword [ebp], eax
cmp eax, 7
jbe 0x40d489
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x40d4c0
movzx eax, byte [esi + 0x48]
lea edx, [ecx + 1]
mov dword [esi + 0x30], edx
mov byte [ecx], al
mov eax, dword [esi + 0x44]
jmp 0x40d4c0
shr dword [edi], 8
add ecx, 0xfffffff8
mov dword [ebp], ecx
cmp ecx, 7
jbe 0x40d4a9
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x40d4f0
movzx ecx, byte [esi + 0x48]
lea edx, [eax + 1]
mov dword [esi + 0x30], edx
mov byte [eax], cl
mov ecx, dword [esi + 0x44]
jmp 0x40d4f0
xor ecx, ecx
test byte [esi + 9], 0x10
jne 0x40d5c6
lea eax, [esi + 0x8192]
lea edi, [esi + 0x9272]
lea ebx, [esi + 0x9273]
push 0x280
push 0
push eax
call fcn.00416ef0
add esp, 0xc
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], edi
mov dword [esi + 0x38], 8
mov edi, dword [esi + 0x30]
mov eax, dword [esi + 0x3c]
add dword [esi + 0x40], eax
mov dword [esi + 0x3c], 0
inc dword [esi + 0x64]
mov ecx, dword [esp + 0x10]
sub edi, ecx
je 0x40d7b2
cmp dword [esi], 0
je 0x40d5ad
mov eax, dword [esi + 0x78]
mov ecx, dword [esi + 0x84]
sub ecx, dword [esi + 0x70]
mov dword [eax], ecx
lea eax, [esi + 0x39272]
push dword [esi + 4]
push edi
push eax
call dword [esi]
add esp, 0xc
test eax, eax
jne 0x40d7b2
mov dword [esi + 0x6c], 0xffffffff
mov eax, 0xffffffff
jmp 0x40d7b5
lea eax, [esi + 0x39272]
cmp ecx, eax
je 0x40d774
add dword [esi + 0x8c], edi
jmp 0x40d7b2
mov ebx, dword [esi + 0x18]
mov dword [esp + 4], ebx
shr ebx, 0x18
shl ebx, cl
or ebx, dword [esi + 0x48]
mov dword [esi + 0x48], ebx
or ecx, 8
mov dword [esi + 0x44], ecx
jmp 0x40d5fe
lea ecx, [eax + 1]
mov dword [esi + 0x30], ecx
mov byte [eax], bl
mov eax, dword [esi + 0x44]
mov ebx, dword [esi + 0x48]
shr ebx, 8
mov dword [edi], ebx
lea ecx, [eax - 8]
mov dword [ebp], ecx
cmp ecx, 7
jbe 0x40d60a
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jb 0x40d5e0
mov eax, ecx
jmp 0x40d5ee
mov edx, dword [esp + 4]
shr edx, 0x10
movzx edx, dl
shl edx, cl
or ebx, edx
mov dword [edi], ebx
mov dword [ebp], eax
jmp 0x40d63e
lea eax, [ecx + 1]
mov dword [esi + 0x30], eax
mov byte [ecx], bl
mov edx, dword [esi + 0x44]
mov ebx, dword [esi + 0x48]
shr ebx, 8
mov dword [edi], ebx
lea eax, [edx - 8]
mov dword [ebp], eax
cmp eax, 7
jbe 0x40d64a
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jb 0x40d620
mov edx, eax
jmp 0x40d62e
mov ecx, dword [esp + 4]
movzx edi, ch
mov ecx, eax
shl edi, cl
or ebx, edi
mov edi, dword [esp]
mov dword [edi], ebx
mov dword [ebp], edx
jmp 0x40d68e
lea ecx, [eax + 1]
mov dword [esi + 0x30], ecx
mov byte [eax], bl
mov eax, dword [esi + 0x44]
mov ebx, dword [esi + 0x48]
shr ebx, 8
mov dword [edi], ebx
lea edx, [eax - 8]
mov dword [ebp], edx
cmp edx, 7
jbe 0x40d69a
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jb 0x40d670
mov eax, edx
jmp 0x40d67e
movzx edi, byte [esp + 4]
mov ecx, edx
shl edi, cl
or ebx, edi
mov edx, dword [esp]
mov dword [edx], ebx
mov dword [ebp], eax
jmp 0x40d6c4
shr ebx, 8
mov dword [edx], ebx
add eax, 0xfffffff8
mov dword [ebp], eax
cmp eax, 7
jbe 0x40d523
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x40d6b0
lea eax, [ecx + 1]
mov dword [esi + 0x30], eax
mov byte [ecx], bl
mov eax, dword [esi + 0x44]
mov ebx, dword [esi + 0x48]
jmp 0x40d6b0
mov ecx, 0x10
mov eax, dword [edi]
mov dword [ebp], ecx
jmp 0x40d708
shr eax, 8
mov dword [edi], eax
mov edx, ecx
or edx, 0xfffffff7
and ecx, 0xfffffff7
add ecx, edx
inc ecx
mov dword [ebp], ecx
cmp ecx, 7
jbe 0x40d720
mov edx, dword [esi + 0x30]
cmp edx, dword [esi + 0x34]
jae 0x40d6f0
lea ecx, [edx + 1]
mov dword [esi + 0x30], ecx
mov byte [edx], al
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x48]
jmp 0x40d6f0
mov edx, 0xffff
shl edx, cl
or eax, edx
mov dword [edi], eax
add ecx, 0x10
mov dword [ebp], ecx
jmp 0x40d75c
shr eax, 8
mov dword [edi], eax
mov edx, ecx
or edx, 0xfffffff7
and ecx, 0xfffffff7
add ecx, edx
inc ecx
mov dword [ebp], ecx
cmp ecx, 7
jbe 0x40d523
mov edx, dword [esi + 0x30]
cmp edx, dword [esi + 0x34]
jae 0x40d740
lea ecx, [edx + 1]
mov dword [esi + 0x30], ecx
mov byte [edx], al
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x48]
jmp 0x40d740
mov edx, dword [esi + 0x7c]
mov ecx, dword [esi + 0x8c]
mov edx, dword [edx]
mov ebx, ecx
not ebx
and ebx, edx
not edx
and edx, ecx
sub ebx, edx
cmp edi, ebx
mov ebp, ebx
cmovb ebp, edi
add ecx, dword [esi + 0x74]
push ebp
push eax
push ecx
call fcn.00416bf0
add esp, 0xc
add dword [esi + 0x8c], ebp
cmp edi, ebx
jbe 0x40d7b2
sub edi, ebp
mov dword [esi + 0x58], ebp
mov dword [esi + 0x5c], edi
mov eax, dword [esi + 0x5c]
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret