Function at 0x40cd80
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 [0x47fa20]
test eax, eax
jne 0x40ce1e
mov eax, 0xaa5d974c
xor eax, dword [0x45fdf0]
mov dword [0x45fe1c], eax
mov eax, 0xcb94a8f6
xor eax, dword [0x45fdf4]
mov dword [0x45fe20], eax
mov eax, 0xc4de9c6a
xor eax, dword [0x45fdf8]
mov dword [0x45fe24], eax
mov eax, dword [0x45fdfc]
lea ecx, [eax + eax]
and ecx, 0x9b24633c
neg ecx
add eax, ecx
add eax, 0x4d92319e
mov dword [0x45fe28], eax
mov eax, dword [0x45fe00]
lea ecx, [eax + eax]
and ecx, 0xbbc5dffe
neg ecx
add eax, ecx
add eax, 0xdde2efff
mov dword [0x45fe2c], eax
mov eax, 0xf7c42c34
xor eax, dword [0x45fe04]
mov dword [0x45fe30], eax
mov eax, 0x170bf0ea
xor eax, dword [0x45fe08]
mov dword [0x45fe34], eax
mov dword [0x47fa20], 1
test byte [esi + 0xa], 8
mov dword [esp + 8], edx
jne 0x40ce3b
xor edx, edx
cmp dword [esi], 0
jne 0x40ce65
jmp 0x40ce4c
mov eax, dword [esi + 0x1c]
sub eax, dword [esi + 0x40]
cmp eax, dword [esi + 0x24]
setbe dl
cmp dword [esi], 0
jne 0x40ce65
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi + 0x8c]
mov eax, dword [eax]
sub eax, ecx
cmp eax, 0x14ccc
jb 0x40ce65
add ecx, dword [esi + 0x74]
jmp 0x40ce6b
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 0x40ceb8
cmp dword [esi + 0x64], 0
je 0x40cfef
xor eax, eax
cmp dword [esp + 8], 4
sete al
mov ebx, dword [esi + 0x44]
mov ecx, ebx
shl eax, cl
lea ebp, [esi + 0x44]
lea ecx, [esi + 0x48]
mov dword [esp], ecx
or eax, dword [esi + 0x48]
mov edi, eax
mov dword [esi + 0x48], eax
inc ebx
mov dword [esi + 0x44], ebx
cmp ebx, 8
jae 0x40cf91
mov eax, dword [esi + 0x30]
mov dword [esp + 4], eax
xor eax, eax
test dl, dl
jne 0x40cf20
mov al, 1
test byte [esi + 0xa], 4
jne 0x40cf03
cmp dword [esi + 0x3c], 0x30
setb al
movzx edx, al
mov ecx, esi
call fcn.0040fc80
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x40cf2b
mov edx, dword [esi + 0x30]
sub edx, dword [esp + 4]
inc edx
cmp edx, ecx
jb 0x40cf2b
mov ecx, dword [esi + 0x1c]
sub ecx, dword [esi + 0x40]
cmp ecx, dword [esi + 0x24]
jbe 0x40cf9d
test eax, eax
jne 0x40d233
mov eax, dword [esp + 4]
mov dword [esi + 0x30], eax
mov dword [esi + 0x48], edi
mov dword [esi + 0x44], ebx
mov ecx, esi
mov edx, 1
call fcn.0040fc80
jmp 0x40d233
lea ecx, [eax + 1]
mov dword [esi + 0x30], ecx
mov ecx, edi
mov byte [eax], cl
mov ebx, dword [esi + 0x44]
mov eax, dword [esi + 0x48]
shr eax, 8
mov edi, eax
mov ecx, dword [esp]
mov dword [ecx], eax
mov eax, ebx
or eax, 0xfffffff7
and ebx, 0xfffffff7
add ebx, eax
inc ebx
mov dword [ebp], ebx
cmp ebx, 7
jbe 0x40cee7
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jb 0x40cf60
mov eax, edi
jmp 0x40cf70
mov eax, dword [esp + 4]
mov dword [esi + 0x30], eax
mov eax, edi
mov dword [esi + 0x48], edi
lea eax, [ebx + 2]
mov dword [esi + 0x44], eax
cmp ebx, 6
jb 0x40d0ea
mov ebx, edi
jmp 0x40cfd7
shr ebx, 8
mov ecx, dword [esp]
mov dword [ecx], ebx
add eax, 0xfffffff8
mov dword [ebp], eax
cmp eax, 7
jbe 0x40d0ee
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x40cfc0
lea eax, [ecx + 1]
mov dword [esi + 0x30], eax
mov byte [ecx], bl
mov eax, dword [esi + 0x44]
mov ebx, dword [esi + 0x48]
jmp 0x40cfc0
and ecx, 0xfff
xor eax, eax
cmp dword [0x45fe1c], ecx
je 0x40d03d
cmp dword [0x45fe20], ecx
je 0x40d03d
mov eax, 0x40
cmp dword [0x45fe24], ecx
je 0x40d03d
cmp dword [0x45fe28], ecx
je 0x40d03d
cmp dword [0x45fe2c], ecx
je 0x40d03d
cmp dword [0x45fe30], ecx
je 0x40d03d
xor eax, eax
cmp dword [0x45fe34], 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 0x40d0d1
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 0x40d0a5
shr eax, 8
mov dword [esi + 0x48], eax
add ecx, 0xfffffff8
mov dword [esi + 0x44], ecx
cmp ecx, 7
jbe 0x40ceb8
mov edi, dword [esi + 0x30]
cmp edi, dword [esi + 0x34]
jae 0x40d090
lea ecx, [edi + 1]
mov dword [esi + 0x30], ecx
mov byte [edi], al
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x48]
jmp 0x40d090
shr ebx, 8
mov dword [esi + 0x48], ebx
add ecx, 0xfffffff8
mov dword [esi + 0x44], ecx
cmp ecx, 7
jbe 0x40d076
mov ebp, dword [esi + 0x30]
cmp ebp, dword [esi + 0x34]
jae 0x40d0c0
lea ecx, [ebp + 1]
mov dword [esi + 0x30], ecx
mov byte [ebp], bl
mov ecx, dword [esi + 0x44]
mov ebx, dword [esi + 0x48]
jmp 0x40d0c0
mov ebx, edi
jmp 0x40d0f2
test eax, eax
je 0x40d12b
mov dword [ebp], 8
mov ecx, 8
jmp 0x40d113
shr ebx, 8
mov eax, dword [esp]
mov dword [eax], ebx
add ecx, 0xfffffff8
mov dword [ebp], ecx
cmp ecx, 7
jbe 0x40d12d
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x40d100
lea ecx, [eax + 1]
mov dword [esi + 0x30], ecx
mov byte [eax], bl
mov ecx, dword [esi + 0x44]
mov ebx, dword [esi + 0x48]
jmp 0x40d100
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 0x40d161
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 ecx, dword [esp]
mov dword [ecx], edx
lea ecx, [eax - 8]
mov dword [ebp], ecx
cmp ecx, 7
jbe 0x40d16d
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jb 0x40d140
mov eax, ecx
jmp 0x40d14e
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 0x40d1a3
shr edx, 8
mov ecx, dword [esp]
mov dword [ecx], edx
add eax, 0xfffffff8
mov dword [ebp], eax
cmp eax, 7
jbe 0x40d1bb
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x40d190
lea eax, [ecx + 1]
mov dword [esi + 0x30], eax
mov byte [ecx], dl
mov eax, dword [esi + 0x44]
mov edx, dword [esi + 0x48]
jmp 0x40d190
xor dword [esi + 0x3c], 0xffff
je 0x40d233
xor ebx, ebx
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x10]
jmp 0x40d1d6
inc ebx
cmp ebx, dword [esi + 0x3c]
jae 0x40d233
mov ecx, dword [esi + 0x40]
add ecx, ebx
and ecx, 0x7fff
movzx edi, byte [esi + ecx + 0x90]
mov ecx, eax
shl edi, cl
or edx, edi
mov dword [esi + 0x48], edx
add eax, 8
mov dword [esi + 0x44], eax
jmp 0x40d21b
shr edx, 8
mov ecx, dword [esp]
mov dword [ecx], edx
mov ecx, eax
and ecx, 0xfffffff7
or eax, 0xfffffff7
add eax, ecx
inc eax
mov dword [ebp], eax
cmp eax, 7
jbe 0x40d1d0
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x40d200
lea eax, [ecx + 1]
mov dword [esi + 0x30], eax
mov byte [ecx], dl
mov eax, dword [esi + 0x44]
mov edx, dword [esi + 0x48]
jmp 0x40d200
mov eax, dword [esp + 8]
test eax, eax
je 0x40d33e
cmp eax, 4
jne 0x40d2aa
mov eax, dword [ebp]
test eax, eax
je 0x40d332
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 0x40d291
test byte [esi + 9], 0x10
je 0x40d33e
jmp 0x40d3e1
mov eax, dword [esp]
shr dword [eax], 8
add ecx, 0xfffffff8
mov dword [ebp], ecx
cmp ecx, 7
jbe 0x40d267
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x40d280
movzx ecx, byte [esi + 0x48]
lea edx, [eax + 1]
mov dword [esi + 0x30], edx
mov byte [eax], cl
mov ecx, dword [esi + 0x44]
jmp 0x40d280
mov eax, dword [ebp]
add eax, 3
mov dword [ebp], eax
cmp eax, 8
jae 0x40d311
test eax, eax
je 0x40d568
mov dword [ebp], 8
mov eax, 8
jmp 0x40d2e1
mov eax, dword [esp]
shr dword [eax], 8
lea eax, [ecx - 8]
mov dword [ebp], eax
cmp eax, 7
jbe 0x40d32a
mov edx, dword [esi + 0x30]
mov ecx, eax
cmp edx, dword [esi + 0x34]
jae 0x40d2d0
movzx eax, byte [esi + 0x48]
lea ecx, [edx + 1]
mov dword [esi + 0x30], ecx
mov byte [edx], al
mov ecx, dword [esi + 0x44]
jmp 0x40d2d0
mov ecx, dword [esp]
shr dword [ecx], 8
add eax, 0xfffffff8
mov dword [ebp], eax
cmp eax, 7
jbe 0x40d2b8
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x40d300
movzx eax, byte [esi + 0x48]
lea edx, [ecx + 1]
mov dword [esi + 0x30], edx
mov byte [ecx], al
mov eax, dword [esi + 0x44]
jmp 0x40d300
add ecx, 8
jmp 0x40d56d
xor ecx, ecx
test byte [esi + 9], 0x10
jne 0x40d3e1
lea eax, [esi + 0x8192]
lea edi, [esi + 0x9272]
lea ebx, [esi + 0x9273]
push 0x280
push 0
push eax
call fcn.00416b30
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 0x40d645
cmp dword [esi], 0
je 0x40d3c8
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 0x40d645
mov dword [esi + 0x6c], 0xffffffff
mov eax, 0xffffffff
jmp 0x40d648
lea eax, [esi + 0x39272]
cmp ecx, eax
je 0x40d607
add dword [esi + 0x8c], edi
jmp 0x40d645
mov ebx, dword [esi + 0x18]
mov eax, dword [esi + 0x48]
mov edi, ebx
shr ebx, 0x18
shl ebx, cl
mov edx, eax
xor edx, ebx
not ebx
and ebx, eax
add edx, eax
sub edx, ebx
mov dword [esi + 0x48], edx
add ecx, 8
mov dword [esi + 0x44], ecx
jmp 0x40d42c
shr edx, 8
mov eax, dword [esp]
mov dword [eax], edx
mov eax, ecx
xor eax, 0xfffffff7
and ecx, 0xfffffff7
lea ecx, [eax + ecx*2]
inc ecx
mov dword [ebp], ecx
cmp ecx, 7
jbe 0x40d444
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x40d410
lea ecx, [eax + 1]
mov dword [esi + 0x30], ecx
mov byte [eax], dl
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x48]
jmp 0x40d410
mov eax, edi
shr eax, 0x10
movzx eax, al
shl eax, cl
mov ebx, edx
xor ebx, eax
not eax
and eax, edx
add ebx, edx
sub ebx, eax
mov eax, dword [esp]
mov dword [eax], ebx
add ecx, 8
mov dword [ebp], ecx
jmp 0x40d48c
shr ebx, 8
mov eax, dword [esp]
mov dword [eax], ebx
mov eax, ecx
xor eax, 0xfffffff7
and ecx, 0xfffffff7
lea ecx, [eax + ecx*2]
inc ecx
mov dword [ebp], ecx
cmp ecx, 7
jbe 0x40d4a4
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x40d470
lea ecx, [eax + 1]
mov dword [esi + 0x30], ecx
mov byte [eax], bl
mov ecx, dword [esi + 0x44]
mov ebx, dword [esi + 0x48]
jmp 0x40d470
mov eax, edi
movzx eax, ah
shl eax, cl
mov edx, ebx
xor edx, eax
not eax
and eax, ebx
add edx, ebx
sub edx, eax
mov eax, dword [esp]
mov dword [eax], edx
add ecx, 8
mov dword [ebp], ecx
jmp 0x40d4ec
shr edx, 8
mov eax, dword [esp]
mov dword [eax], edx
mov eax, ecx
xor eax, 0xfffffff7
and ecx, 0xfffffff7
lea ecx, [eax + ecx*2]
inc ecx
mov dword [ebp], ecx
cmp ecx, 7
jbe 0x40d504
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x40d4d0
lea ecx, [eax + 1]
mov dword [esi + 0x30], ecx
mov byte [eax], dl
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x48]
jmp 0x40d4d0
mov eax, edi
movzx ebx, al
shl ebx, cl
mov eax, edx
xor eax, ebx
not ebx
and ebx, edx
add eax, edx
sub eax, ebx
mov edx, dword [esp]
mov dword [edx], eax
add ecx, 8
mov dword [ebp], ecx
jmp 0x40d550
shr eax, 8
mov edx, dword [esp]
mov dword [edx], eax
mov edx, ecx
xor edx, 0xfffffff7
and ecx, 0xfffffff7
lea ecx, [edx + ecx*2]
inc ecx
mov dword [ebp], ecx
cmp ecx, 7
jbe 0x40d33e
mov edx, dword [esi + 0x30]
cmp edx, dword [esi + 0x34]
jae 0x40d530
lea ecx, [edx + 1]
mov dword [esi + 0x30], ecx
mov byte [edx], al
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x48]
jmp 0x40d530
mov ecx, 0x10
mov eax, dword [esp]
mov eax, dword [eax]
mov dword [ebp], ecx
jmp 0x40d59b
shr eax, 8
mov edx, dword [esp]
mov dword [edx], eax
mov edx, ecx
or edx, 0xfffffff7
and ecx, 0xfffffff7
add ecx, edx
inc ecx
mov dword [ebp], ecx
cmp ecx, 7
jbe 0x40d5b3
mov edx, dword [esi + 0x30]
cmp edx, dword [esi + 0x34]
jae 0x40d580
lea ecx, [edx + 1]
mov dword [esi + 0x30], ecx
mov byte [edx], al
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x48]
jmp 0x40d580
mov edx, 0xffff
shl edx, cl
or edx, eax
mov eax, dword [esp]
mov dword [eax], edx
add ecx, 0x10
mov dword [ebp], ecx
jmp 0x40d5ef
shr edx, 8
mov eax, dword [esp]
mov dword [eax], edx
mov eax, ecx
or eax, 0xfffffff7
and ecx, 0xfffffff7
add ecx, eax
inc ecx
mov dword [ebp], ecx
cmp ecx, 7
jbe 0x40d33e
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x40d5d0
lea ecx, [eax + 1]
mov dword [esi + 0x30], ecx
mov byte [eax], dl
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x48]
jmp 0x40d5d0
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.004169b0
add esp, 0xc
add dword [esi + 0x8c], ebp
cmp edi, ebx
jbe 0x40d645
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