Function at 0x40d6d0
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 [0x477ec0]
test eax, eax
jne 0x40d76e
mov eax, dword [0x45cdf0]
lea ecx, [eax + eax]
and ecx, 0xc32a1e36
neg ecx
add eax, ecx
add eax, 0x61950f1b
mov dword [0x45ce1c], eax
mov eax, dword [0x45cdf4]
lea ecx, [eax + eax]
and ecx, 0xad53b732
neg ecx
add eax, ecx
add eax, 0xd6a9db99
mov dword [0x45ce20], eax
mov eax, 0x8b95aa81
xor eax, dword [0x45cdf8]
mov dword [0x45ce24], eax
mov eax, 0x1da3adfe
xor eax, dword [str.Y8A]
mov dword [0x45ce28], eax
mov eax, 0x5fb35332
xor eax, dword [0x45ce00]
mov dword [0x45ce2c], eax
mov eax, 0x95e9858a
xor eax, dword [0x45ce04]
mov dword [0x45ce30], eax
mov eax, 0xa6321e4f
xor eax, dword [0x45ce08]
mov dword [0x45ce34], eax
mov dword [0x477ec0], 1
test byte [esi + 0xa], 8
jne 0x40d78c
mov dword [esp], 0
cmp dword [esi], 0
jne 0x40d7be
jmp 0x40d7a0
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 0x40d7be
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi + 0x8c]
mov eax, dword [eax]
sub eax, ecx
add eax, 0xfffeb334
cmp eax, 0xfffeb333
ja 0x40d7be
add ecx, dword [esi + 0x74]
jmp 0x40d7c4
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 0x40d811
cmp dword [esi + 0x64], 0
je 0x40d91c
xor eax, eax
mov dword [esp + 8], edx
cmp edx, 4
sete al
mov ecx, dword [esi + 0x44]
mov edi, dword [esi + 0x48]
shl eax, cl
mov ebx, edi
xor ebx, eax
not eax
and eax, edi
add ebx, edi
lea ebp, [esi + 0x44]
sub ebx, eax
lea edi, [esi + 0x48]
mov dword [esi + 0x48], ebx
inc ecx
mov dword [esi + 0x44], ecx
cmp ecx, 8
jb 0x40d878
mov edx, dword [esp]
jmp 0x40d860
shr ebx, 8
mov dword [edi], ebx
add ecx, 0xfffffff8
mov dword [ebp], ecx
cmp ecx, 7
jbe 0x40d87b
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x40d850
lea ecx, [eax + 1]
mov dword [esi + 0x30], ecx
mov byte [eax], bl
mov ecx, dword [esi + 0x44]
mov ebx, dword [esi + 0x48]
jmp 0x40d850
mov edx, dword [esp]
mov eax, dword [esi + 0x30]
mov dword [esp], eax
xor eax, eax
test dl, dl
jne 0x40d8c2
mov dword [esp + 4], ecx
mov al, 1
test byte [esi + 0xa], 4
jne 0x40d89a
cmp dword [esi + 0x3c], 0x30
setb al
movzx edx, al
mov ecx, esi
call fcn.004105a0
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x40da39
mov edx, dword [esi + 0x30]
sub edx, dword [esp]
inc edx
cmp edx, ecx
mov ecx, dword [esp + 4]
jb 0x40da3d
mov edx, ecx
mov ecx, dword [esi + 0x1c]
sub ecx, dword [esi + 0x40]
cmp ecx, dword [esi + 0x24]
mov ecx, edx
ja 0x40da3d
mov eax, dword [esp]
mov dword [esi + 0x30], eax
mov dword [esi + 0x48], ebx
lea eax, [ecx + 2]
mov dword [esi + 0x44], eax
cmp ecx, 6
jae 0x40d904
jmp 0x40da66
shr ebx, 8
mov dword [edi], ebx
add eax, 0xfffffff8
mov dword [ebp], eax
cmp eax, 7
jbe 0x40da62
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x40d8f0
lea eax, [ecx + 1]
mov dword [esi + 0x30], eax
mov byte [ecx], bl
mov eax, dword [esi + 0x44]
mov ebx, dword [esi + 0x48]
jmp 0x40d8f0
mov eax, ecx
xor eax, 0xfffff000
or ecx, 0xfff
and ecx, eax
xor eax, eax
cmp dword [0x45ce1c], ecx
je 0x40d973
cmp dword [0x45ce20], ecx
je 0x40d973
mov eax, 0x40
cmp dword [0x45ce24], ecx
je 0x40d973
cmp dword [0x45ce28], ecx
je 0x40d973
cmp dword [0x45ce2c], ecx
je 0x40d973
cmp dword [0x45ce30], ecx
je 0x40d973
xor eax, eax
cmp dword [0x45ce34], ecx
setne al
or eax, 2
shl eax, 6
lea ecx, [eax + 0x7800]
imul ecx, ecx, 0x4211
shr ecx, 0x13
mov edi, ecx
shl edi, 5
sub ecx, edi
add ecx, eax
add ecx, 0x7800
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
sub ecx, 0xfffffff8
mov dword [esi + 0x44], ecx
jb 0x40da21
movzx edi, al
shl edi, cl
mov eax, ebx
xor eax, edi
not edi
and edi, ebx
add eax, ebx
sub eax, edi
mov dword [esi + 0x48], eax
add ecx, 8
mov dword [esi + 0x44], ecx
jmp 0x40d9f5
shr eax, 8
mov dword [esi + 0x48], eax
add ecx, 0xfffffff8
mov dword [esi + 0x44], ecx
cmp ecx, 7
jbe 0x40d811
mov edi, dword [esi + 0x30]
cmp edi, dword [esi + 0x34]
jae 0x40d9e0
lea ecx, [edi + 1]
mov dword [esi + 0x30], ecx
mov byte [edi], al
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x48]
jmp 0x40d9e0
shr ebx, 8
mov dword [esi + 0x48], ebx
add ecx, 0xfffffff8
mov dword [esi + 0x44], ecx
cmp ecx, 7
jbe 0x40d9ba
mov edi, dword [esi + 0x30]
cmp edi, dword [esi + 0x34]
jae 0x40da10
lea ecx, [edi + 1]
mov dword [esi + 0x30], ecx
mov byte [edi], bl
mov ecx, dword [esi + 0x44]
mov ebx, dword [esi + 0x48]
jmp 0x40da10
mov ecx, dword [esp + 4]
test eax, eax
jne 0x40dbb8
mov eax, dword [esp]
mov dword [esi + 0x30], eax
mov dword [esi + 0x48], ebx
mov dword [esi + 0x44], ecx
mov ecx, esi
mov edx, 1
call fcn.004105a0
jmp 0x40dbb8
test eax, eax
je 0x40daa8
mov dword [ebp], 8
mov ecx, 8
jmp 0x40da90
shr ebx, 8
mov dword [edi], ebx
add ecx, 0xfffffff8
mov dword [ebp], ecx
cmp ecx, 7
jbe 0x40daaa
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x40da80
lea ecx, [eax + 1]
mov dword [esi + 0x30], ecx
mov byte [eax], bl
mov ecx, dword [esi + 0x44]
mov ebx, dword [esi + 0x48]
jmp 0x40da80
xor ecx, ecx
movzx edx, word [esi + 0x3c]
shl edx, cl
or edx, ebx
mov dword [esi + 0x48], edx
or ecx, 0x10
mov dword [esi + 0x44], ecx
jmp 0x40dade
lea ecx, [eax + 1]
mov dword [esi + 0x30], ecx
mov byte [eax], dl
mov eax, dword [esi + 0x44]
mov edx, dword [esi + 0x48]
shr edx, 8
mov dword [edi], edx
lea ecx, [eax - 8]
mov dword [ebp], ecx
cmp ecx, 7
jbe 0x40daea
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jb 0x40dac0
mov eax, ecx
jmp 0x40dace
mov ebx, 0xffff
xor ebx, dword [esi + 0x3c]
mov dword [esi + 0x3c], ebx
movzx ebx, bx
shl ebx, cl
or edx, ebx
mov dword [esi + 0x48], edx
add eax, 8
mov dword [esi + 0x44], eax
jmp 0x40db20
shr edx, 8
mov dword [edi], edx
add eax, 0xfffffff8
mov dword [ebp], eax
cmp eax, 7
jbe 0x40db38
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 0x40dbb8
xor ebx, ebx
mov dword [esp + 0x10], edi
jmp 0x40db56
inc ebx
cmp ebx, dword [esi + 0x3c]
jae 0x40dbb8
mov ecx, dword [esi + 0x40]
add ecx, ebx
and ecx, 0x7fff
mov edi, ebp
movzx ebp, byte [esi + ecx + 0x90]
mov ecx, eax
shl ebp, cl
or edx, ebp
mov ebp, edi
mov edi, dword [esp + 0x10]
mov dword [esi + 0x48], edx
add eax, 8
mov dword [esi + 0x44], eax
jmp 0x40dba0
shr edx, 8
mov dword [edi], edx
add eax, 0xfffffff8
mov dword [ebp], eax
cmp eax, 7
jbe 0x40db50
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x40db90
lea eax, [ecx + 1]
mov dword [esi + 0x30], eax
mov byte [ecx], dl
mov eax, dword [esi + 0x44]
mov edx, dword [esi + 0x48]
jmp 0x40db90
mov eax, dword [esp + 8]
test eax, eax
je 0x40dcb7
cmp eax, 4
jne 0x40dc1b
cmp dword [ebp], 0
je 0x40dca8
mov dword [ebp], 8
mov ecx, 8
jmp 0x40dc02
shr dword [edi], 8
add ecx, 0xfffffff8
mov dword [ebp], ecx
cmp ecx, 7
jbe 0x40dcaa
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 [ebp]
add eax, 3
mov dword [ebp], eax
cmp eax, 8
jae 0x40dc87
test eax, eax
je 0x40de9c
mov dword [ebp], 8
mov edx, 8
jmp 0x40dc52
mov eax, dword [edi]
shr eax, 8
mov dword [edi], eax
lea edx, [ecx - 8]
mov dword [ebp], edx
cmp edx, 7
jbe 0x40dca0
mov eax, dword [esi + 0x30]
mov ecx, edx
cmp eax, dword [esi + 0x34]
jae 0x40dc40
movzx ecx, byte [esi + 0x48]
lea edx, [eax + 1]
mov dword [esi + 0x30], edx
mov byte [eax], cl
mov ecx, dword [esi + 0x44]
jmp 0x40dc40
shr dword [edi], 8
mov ecx, eax
xor ecx, 0xfffffff7
and eax, 0xfffffff7
lea eax, [ecx + eax*2]
inc eax
mov dword [ebp], eax
cmp eax, 7
jbe 0x40dc29
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
add ecx, 8
jmp 0x40dea3
xor ecx, ecx
test dword [esi + 8], 0x1000
jne 0x40dd66
lea eax, [esi + 0x8192]
lea edi, [esi + 0x9272]
lea ebx, [esi + 0x9273]
push 0x280
push 0
push eax
call fcn.004170a0
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 0x40df50
cmp dword [esi], 0
je 0x40dd4d
mov eax, dword [esi + 0x84]
mov ecx, eax
not ecx
mov edx, dword [esi + 0x70]
mov ebx, dword [esi + 0x78]
and ecx, edx
not edx
and edx, eax
sub edx, ecx
mov dword [ebx], edx
lea eax, [esi + 0x39272]
push dword [esi + 4]
push edi
push eax
call dword [esi]
add esp, 0xc
test eax, eax
jne 0x40df50
mov dword [esi + 0x6c], 0xffffffff
mov eax, 0xffffffff
jmp 0x40df53
lea eax, [esi + 0x39272]
cmp ecx, eax
je 0x40df1c
add dword [esi + 0x8c], edi
jmp 0x40df50
mov edx, dword [esi + 0x18]
mov eax, edx
shr eax, 0x18
shl eax, cl
or eax, dword [esi + 0x48]
mov dword [esi + 0x48], eax
or ecx, 8
mov dword [esi + 0x44], ecx
jmp 0x40dd90
shr eax, 8
mov dword [edi], eax
add ecx, 0xfffffff8
mov dword [ebp], ecx
cmp ecx, 7
jbe 0x40dda8
mov ebx, dword [esi + 0x30]
cmp ebx, dword [esi + 0x34]
jae 0x40dd80
lea ecx, [ebx + 1]
mov dword [esi + 0x30], ecx
mov byte [ebx], al
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x48]
jmp 0x40dd80
mov ebx, edx
shr ebx, 0x10
movzx ebx, bl
shl ebx, cl
or eax, ebx
mov dword [edi], eax
mov ebx, ecx
and ebx, 8
xor ecx, 8
lea ecx, [ecx + ebx*2]
mov dword [ebp], ecx
jmp 0x40dde0
shr eax, 8
mov dword [edi], eax
add ecx, 0xfffffff8
mov dword [ebp], ecx
cmp ecx, 7
jbe 0x40ddf8
mov ebx, dword [esi + 0x30]
cmp ebx, dword [esi + 0x34]
jae 0x40ddd0
lea ecx, [ebx + 1]
mov dword [esi + 0x30], ecx
mov byte [ebx], al
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x48]
jmp 0x40ddd0
movzx ebx, dh
shl ebx, cl
or eax, ebx
mov dword [edi], eax
mov ebx, ecx
and ebx, 8
xor ecx, 8
lea ecx, [ecx + ebx*2]
mov dword [ebp], ecx
jmp 0x40de30
shr eax, 8
mov dword [edi], eax
add ecx, 0xfffffff8
mov dword [ebp], ecx
cmp ecx, 7
jbe 0x40de48
mov ebx, dword [esi + 0x30]
cmp ebx, dword [esi + 0x34]
jae 0x40de20
lea ecx, [ebx + 1]
mov dword [esi + 0x30], ecx
mov byte [ebx], al
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x48]
jmp 0x40de20
movzx edx, dl
shl edx, cl
or eax, edx
mov dword [edi], eax
mov edx, ecx
and edx, 8
xor ecx, 8
lea ecx, [ecx + edx*2]
mov dword [ebp], ecx
jmp 0x40de84
shr eax, 8
mov dword [edi], eax
add ecx, 0xfffffff8
mov dword [ebp], ecx
cmp ecx, 7
jbe 0x40dcb7
mov edx, dword [esi + 0x30]
cmp edx, dword [esi + 0x34]
jae 0x40de70
lea ecx, [edx + 1]
mov dword [esi + 0x30], ecx
mov byte [edx], al
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x48]
jmp 0x40de70
mov eax, dword [edi]
mov ecx, 0x10
mov dword [edi], eax
mov dword [ebp], ecx
jmp 0x40dece
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 [edi], eax
lea ecx, [edx - 8]
mov dword [ebp], ecx
cmp ecx, 7
jbe 0x40deda
mov edx, dword [esi + 0x30]
cmp edx, dword [esi + 0x34]
jb 0x40deb0
mov edx, ecx
jmp 0x40debe
mov ebx, 0xffff
shl ebx, cl
or eax, ebx
mov dword [edi], eax
add edx, 8
mov dword [ebp], edx
jmp 0x40df04
shr eax, 8
mov dword [edi], eax
add edx, 0xfffffff8
mov dword [ebp], edx
cmp edx, 7
jbe 0x40dcb7
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x40def0
lea edx, [ecx + 1]
mov dword [esi + 0x30], edx
mov byte [ecx], al
mov edx, dword [esi + 0x44]
mov eax, dword [esi + 0x48]
jmp 0x40def0
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.00416f20
add esp, 0xc
add dword [esi + 0x8c], ebx
cmp edi, ebp
jbe 0x40df50
sub edi, ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], edi
mov eax, dword [esi + 0x5c]
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret