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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov esi, ecx
mov eax, dword [0x458044]
test eax, eax
jne 0x40d790
mov eax, dword [0x448df0]
lea ecx, [eax + eax]
and ecx, 0x556e9a52
neg ecx
add eax, ecx
add eax, 0xaab74d29
mov ecx, 0x30122bde
xor ecx, dword [0x448df4]
mov dword [0x448e1c], eax
mov eax, 0x224d787c
xor eax, dword [0x448df8]
mov dword [0x448e20], ecx
mov ecx, 0xbdb6b23e
xor ecx, dword [0x448dfc]
mov dword [0x448e24], eax
mov eax, 0x541f759a
xor eax, dword [0x448e00]
mov dword [0x448e28], ecx
mov dword [0x448e2c], eax
mov eax, dword [0x448e04]
lea ecx, [eax + eax]
and ecx, 0x1e992f06
neg ecx
add eax, ecx
add eax, 0x8f4c9783
mov dword [0x448e30], eax
mov eax, 0xfd4b54d5
xor eax, dword [0x448e08]
mov dword [0x448e34], eax
mov dword [0x458044], 1
test byte [esi + 0xa], 8
mov dword [esp + 4], edx
jne 0x40d7ad
xor edx, edx
cmp dword [esi], 0
jne 0x40d7e3
jmp 0x40d7ca
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x40]
mov edx, ecx
not edx
and edx, eax
not eax
and eax, ecx
sub edx, eax
cmp edx, dword [esi + 0x24]
setbe dl
cmp dword [esi], 0
jne 0x40d7e3
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi + 0x8c]
mov eax, dword [eax]
sub eax, ecx
cmp eax, 0x14ccc
jb 0x40d7e3
add ecx, dword [esi + 0x74]
jmp 0x40d7e9
lea ecx, [esi + 0x39272]
mov dword [esi + 0x30], ecx
mov dword [esp + 0xc], 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 0x40d836
cmp dword [esi + 0x64], 0
je 0x40d94b
xor ebx, ebx
cmp dword [esp + 4], 4
sete bl
mov ecx, dword [esi + 0x44]
shl ebx, cl
lea eax, [esi + 0x48]
mov dword [esp], eax
or ebx, dword [esi + 0x48]
lea edi, [esi + 0x44]
mov dword [esi + 0x48], ebx
mov eax, ecx
and eax, 1
xor ecx, 1
lea ebp, [ecx + eax*2]
mov dword [esi + 0x44], ebp
cmp ebp, 8
jae 0x40d8e2
mov dword [esp + 8], ebx
mov ebx, dword [esi + 0x30]
xor eax, eax
test dl, dl
jne 0x40d89e
mov al, 1
test byte [esi + 0xa], 4
jne 0x40d883
cmp dword [esi + 0x3c], 0x30
setb al
movzx edx, al
mov ecx, esi
call fcn.00410730
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x40d8a9
mov edx, dword [esi + 0x30]
sub edx, ebx
inc edx
cmp edx, ecx
jb 0x40d8a9
mov ecx, dword [esi + 0x1c]
sub ecx, dword [esi + 0x40]
cmp ecx, dword [esi + 0x24]
jbe 0x40d8fa
test eax, eax
jne 0x40dbb0
mov dword [esi + 0x30], ebx
mov eax, dword [esp + 8]
mov dword [esi + 0x48], eax
mov dword [esi + 0x44], ebp
mov ecx, esi
mov edx, 1
call fcn.00410730
jmp 0x40dbb0
shr ebx, 8
mov eax, dword [esp]
mov dword [eax], ebx
add ebp, 0xfffffff8
mov dword [edi], ebp
cmp ebp, 7
jbe 0x40d867
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x40d8d0
lea ecx, [eax + 1]
mov dword [esi + 0x30], ecx
mov byte [eax], bl
mov ebp, dword [esi + 0x44]
mov ebx, dword [esi + 0x48]
jmp 0x40d8d0
mov dword [esi + 0x30], ebx
mov ebx, dword [esp + 8]
mov dword [esi + 0x48], ebx
lea eax, [ebp + 2]
mov dword [esi + 0x44], eax
cmp ebp, 6
jb 0x40da4a
mov edx, dword [esp]
jmp 0x40d933
shr ebx, 8
mov dword [edx], ebx
add eax, 0xfffffff8
mov dword [edi], eax
cmp eax, 7
jbe 0x40da4f
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x40d920
lea eax, [ecx + 1]
mov dword [esi + 0x30], eax
mov byte [ecx], bl
mov eax, dword [esi + 0x44]
mov ebx, dword [esi + 0x48]
jmp 0x40d920
and ecx, 0xfff
xor eax, eax
cmp dword [0x448e1c], ecx
je 0x40d999
cmp dword [0x448e20], ecx
je 0x40d999
mov eax, 0x40
cmp dword [0x448e24], ecx
je 0x40d999
cmp dword [0x448e28], ecx
je 0x40d999
cmp dword [0x448e2c], ecx
je 0x40d999
cmp dword [0x448e30], ecx
je 0x40d999
xor eax, eax
cmp dword [0x448e34], ecx
setne al
or eax, 2
shl eax, 6
lea ecx, [eax + 0x7800]
imul edi, ecx, 0x4211
shr edi, 0x13
mov ebp, edi
shl ebp, 5
mov ecx, dword [esi + 0x44]
mov ebx, pe_nt_image_headers32
shl ebx, cl
sub edi, ebp
add edi, eax
add edi, 0x7800
or ebx, dword [esi + 0x48]
movzx edi, di
mov dword [esi + 0x48], ebx
sub ecx, 0xfffffff8
mov dword [esi + 0x44], ecx
jb 0x40da31
or eax, edi
xor eax, 0x1f
shl eax, cl
or eax, ebx
mov dword [esi + 0x48], eax
add ecx, 8
mov dword [esi + 0x44], ecx
jmp 0x40da05
shr eax, 8
mov dword [esi + 0x48], eax
add ecx, 0xfffffff8
mov dword [esi + 0x44], ecx
cmp ecx, 7
jbe 0x40d836
mov edi, dword [esi + 0x30]
cmp edi, dword [esi + 0x34]
jae 0x40d9f0
lea ecx, [edi + 1]
mov dword [esi + 0x30], ecx
mov byte [edi], al
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x48]
jmp 0x40d9f0
shr ebx, 8
mov dword [esi + 0x48], ebx
add ecx, 0xfffffff8
mov dword [esi + 0x44], ecx
cmp ecx, 7
jbe 0x40d9d2
mov ebp, dword [esi + 0x30]
cmp ebp, dword [esi + 0x34]
jae 0x40da20
lea ecx, [ebp + 1]
mov dword [esi + 0x30], ecx
mov byte [ebp], bl
mov ecx, dword [esi + 0x44]
mov ebx, dword [esi + 0x48]
jmp 0x40da20
mov edx, dword [esp]
jmp 0x40da53
test eax, eax
je 0x40da87
mov dword [edi], 8
mov ecx, 8
jmp 0x40da6f
shr ebx, 8
mov dword [edx], ebx
add ecx, 0xfffffff8
mov dword [edi], ecx
cmp ecx, 7
jbe 0x40da89
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x40da60
lea ecx, [eax + 1]
mov dword [esi + 0x30], ecx
mov byte [eax], bl
mov ecx, dword [esi + 0x44]
mov ebx, dword [esi + 0x48]
jmp 0x40da60
xor ecx, ecx
movzx eax, word [esi + 0x3c]
shl eax, cl
mov ebp, ebx
xor ebx, eax
not eax
and eax, ebp
add ebx, ebp
sub ebx, eax
mov dword [esi + 0x48], ebx
or ecx, 0x10
mov dword [esi + 0x44], ecx
jmp 0x40dacd
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 [edx], ebx
lea ecx, [eax - 8]
mov dword [edi], ecx
cmp ecx, 7
jbe 0x40dad9
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jb 0x40dab0
mov eax, ecx
jmp 0x40dabe
mov edx, 0xffff
xor edx, dword [esi + 0x3c]
mov dword [esi + 0x3c], edx
movzx ebp, dx
shl ebp, cl
mov edx, ebx
xor edx, ebp
not ebp
and ebp, ebx
add edx, ebx
sub edx, ebp
mov ebx, dword [esp]
mov dword [esi + 0x48], edx
add eax, 8
mov dword [esi + 0x44], eax
jmp 0x40db1f
shr edx, 8
mov dword [ebx], edx
add eax, 0xfffffff8
mov dword [edi], eax
cmp eax, 7
jbe 0x40db37
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x40db10
lea eax, [ecx + 1]
mov dword [esi + 0x30], eax
mov byte [ecx], dl
mov eax, dword [esi + 0x44]
mov edx, dword [esi + 0x48]
jmp 0x40db10
xor dword [esi + 0x3c], 0xffff
je 0x40dbb0
xor ebx, ebx
jmp 0x40db56
inc ebx
cmp ebx, dword [esi + 0x3c]
jae 0x40dbb0
mov ecx, dword [esi + 0x40]
add ecx, ebx
and ecx, 0x7fff
movzx ebp, byte [esi + ecx + 0x90]
mov ecx, eax
shl ebp, cl
or edx, ebp
mov dword [esi + 0x48], edx
add eax, 8
mov dword [esi + 0x44], eax
mov ebp, dword [esp]
jmp 0x40db98
shr edx, 8
mov dword [ebp], edx
mov ecx, eax
and ecx, 0xfffffff7
or eax, 0xfffffff7
add eax, ecx
inc eax
mov dword [edi], eax
cmp eax, 7
jbe 0x40db50
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x40db80
lea eax, [ecx + 1]
mov dword [esi + 0x30], eax
mov byte [ecx], dl
mov eax, dword [esi + 0x44]
mov edx, dword [esi + 0x48]
jmp 0x40db80
mov eax, dword [esp + 4]
test eax, eax
mov ebp, dword [esp]
je 0x40de58
cmp eax, 4
jne 0x40dc1b
mov eax, dword [edi]
xor ecx, ecx
test eax, eax
je 0x40dc97
and eax, 8
mov edx, eax
xor edx, 8
add edx, eax
mov dword [edi], edx
je 0x40dc97
mov ecx, edx
jmp 0x40dc02
shr dword [ebp], 8
add ecx, 0xfffffff8
mov dword [edi], ecx
cmp ecx, 7
jbe 0x40dc97
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x40dbf0
movzx ecx, byte [esi + 0x48]
lea edx, [eax + 1]
mov dword [esi + 0x30], edx
mov byte [eax], cl
mov ecx, dword [esi + 0x44]
jmp 0x40dbf0
mov eax, dword [edi]
add eax, 3
mov dword [edi], eax
cmp eax, 8
jae 0x40dc7e
test eax, eax
je 0x40dddb
mov dword [edi], 8
mov eax, 8
jmp 0x40dc52
shr dword [ebp], 8
lea eax, [ecx - 8]
mov dword [edi], eax
cmp eax, 7
jbe 0x40dcfa
mov edx, dword [esi + 0x30]
mov ecx, eax
cmp edx, dword [esi + 0x34]
jae 0x40dc40
movzx eax, byte [esi + 0x48]
lea ecx, [edx + 1]
mov dword [esi + 0x30], ecx
mov byte [edx], al
mov ecx, dword [esi + 0x44]
jmp 0x40dc40
shr dword [ebp], 8
add eax, 0xfffffff8
mov dword [edi], eax
cmp eax, 7
jbe 0x40dc27
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x40dc70
movzx eax, byte [esi + 0x48]
lea edx, [ecx + 1]
mov dword [esi + 0x30], edx
mov byte [ecx], al
mov eax, dword [esi + 0x44]
jmp 0x40dc70
mov eax, dword [esi + 8]
mov edx, eax
xor edx, 0xffffefff
or eax, 0x1000
test eax, edx
je 0x40de58
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 0x40dcee
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 [ebp], ebx
lea ecx, [eax - 8]
mov dword [edi], ecx
cmp ecx, 7
jbe 0x40dd02
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jb 0x40dcd0
mov eax, ecx
jmp 0x40dcde
add ecx, 8
jmp 0x40dde0
mov edx, dword [esp + 4]
shr edx, 0x10
movzx edx, dl
shl edx, cl
or ebx, edx
mov dword [ebp], ebx
mov dword [edi], eax
jmp 0x40dd3e
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 [ebp], ebx
lea eax, [edx - 8]
mov dword [edi], eax
cmp eax, 7
jbe 0x40dd4a
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jb 0x40dd20
mov edx, eax
jmp 0x40dd2e
mov ecx, dword [esp + 4]
movzx ebp, ch
mov ecx, eax
shl ebp, cl
or ebx, ebp
mov ebp, dword [esp]
mov dword [ebp], ebx
mov dword [edi], edx
jmp 0x40dd8e
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 [ebp], ebx
lea edx, [eax - 8]
mov dword [edi], edx
cmp edx, 7
jbe 0x40dd9a
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jb 0x40dd70
mov eax, edx
jmp 0x40dd7e
movzx ebp, byte [esp + 4]
mov ecx, edx
shl ebp, cl
or ebx, ebp
mov edx, dword [esp]
mov dword [edx], ebx
mov dword [edi], eax
jmp 0x40ddc3
shr ebx, 8
mov dword [edx], ebx
add eax, 0xfffffff8
mov dword [edi], eax
cmp eax, 7
jbe 0x40de58
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x40ddb0
lea eax, [ecx + 1]
mov dword [esi + 0x30], eax
mov byte [ecx], bl
mov eax, dword [esi + 0x44]
mov ebx, dword [esi + 0x48]
jmp 0x40ddb0
mov ecx, 0x10
mov eax, dword [ebp]
mov dword [edi], ecx
jmp 0x40de0e
lea ecx, [edx + 1]
mov dword [esi + 0x30], ecx
mov byte [edx], al
mov edx, dword [esi + 0x44]
mov eax, dword [esi + 0x48]
shr eax, 8
mov dword [ebp], eax
lea ecx, [edx - 8]
mov dword [edi], ecx
cmp ecx, 7
jbe 0x40de1a
mov edx, dword [esi + 0x30]
cmp edx, dword [esi + 0x34]
jb 0x40ddf0
mov edx, ecx
jmp 0x40ddfe
mov ebx, 0xffff
shl ebx, cl
or eax, ebx
mov dword [ebp], eax
add edx, 8
mov dword [edi], edx
jmp 0x40de40
shr eax, 8
mov dword [ebp], eax
add edx, 0xfffffff8
mov dword [edi], edx
cmp edx, 7
jbe 0x40de58
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x40de30
lea edx, [ecx + 1]
mov dword [esi + 0x30], edx
mov byte [ecx], al
mov edx, dword [esi + 0x44]
mov eax, dword [esi + 0x48]
jmp 0x40de30
lea eax, [esi + 0x8192]
lea edi, [esi + 0x9272]
lea ebx, [esi + 0x9273]
push 0x280
push 0
push eax
call fcn.00417350
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 + 0xc]
sub edi, ecx
je 0x40df1d
cmp dword [esi], 0
je 0x40ded7
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 0x40df1d
mov dword [esi + 0x6c], 0xffffffff
mov eax, 0xffffffff
jmp 0x40df20
lea eax, [esi + 0x39272]
cmp ecx, eax
je 0x40dee9
add dword [esi + 0x8c], edi
jmp 0x40df1d
mov ecx, dword [esi + 0x7c]
mov edx, dword [esi + 0x8c]
mov ebp, dword [ecx]
sub ebp, edx
cmp edi, ebp
mov ebx, ebp
cmovb ebx, edi
add edx, dword [esi + 0x74]
push ebx
push eax
push edx
call fcn.00417200
add esp, 0xc
add dword [esi + 0x8c], ebx
cmp edi, ebp
jbe 0x40df1d
sub edi, ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], edi
mov eax, dword [esi + 0x5c]
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret