Function at 0x40d760
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 [0x45803c]
test eax, eax
jne 0x40d80a
mov eax, dword [0x448df0]
lea ecx, [eax + eax]
and ecx, 0x50765dc4
neg ecx
add eax, ecx
add eax, 0xa83b2ee2
mov dword [0x448e1c], eax
mov eax, 0x79b652e5
xor eax, dword [0x448df4]
mov dword [str.ufDk], eax
mov eax, 0x2a77841e
xor eax, dword [0x448df8]
mov dword [0x448e24], eax
mov eax, dword [0x448dfc]
lea ecx, [eax + eax]
and ecx, 0x7a137c0e
neg ecx
add eax, ecx
add eax, 0x3d09be07
mov dword [0x448e28], eax
mov eax, dword [0x448e00]
lea ecx, [eax + eax]
and ecx, 0x6a624442
neg ecx
add eax, ecx
add eax, 0xb5312221
mov dword [0x448e2c], eax
mov eax, 0x9c42a315
xor eax, dword [0x448e04]
mov dword [0x448e30], eax
mov eax, 0xa0fbb658
xor eax, dword [0x448e08]
mov dword [0x448e34], eax
mov dword [0x45803c], 1
test byte [esi + 0xa], 8
jne 0x40d828
mov dword [esp], 0
cmp dword [esi], 0
jne 0x40d85a
jmp 0x40d83c
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 0x40d85a
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi + 0x8c]
mov eax, dword [eax]
sub eax, ecx
add eax, 0xfffeb334
cmp eax, 0xfffeb333
ja 0x40d85a
add ecx, dword [esi + 0x74]
jmp 0x40d860
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 eax, dword [esi + 8]
xor ecx, ecx
cmp dword [esi + 0x38], 8
sete cl
sub dword [esi + 0x28], ecx
test eax, 0x1000
je 0x40d8ac
cmp dword [esi + 0x64], 0
je 0x40d9bc
xor eax, eax
mov dword [esp + 4], 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 edi, [esi + 0x44]
sub ebx, eax
lea ebp, [esi + 0x48]
mov dword [esi + 0x48], ebx
inc ecx
mov dword [esi + 0x44], ecx
cmp ecx, 8
jb 0x40d918
mov edx, dword [esp]
jmp 0x40d900
shr ebx, 8
mov dword [ebp], ebx
add ecx, 0xfffffff8
mov dword [edi], ecx
cmp ecx, 7
jbe 0x40d91b
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x40d8f0
lea ecx, [eax + 1]
mov dword [esi + 0x30], ecx
mov byte [eax], bl
mov ecx, dword [esi + 0x44]
mov ebx, dword [esi + 0x48]
jmp 0x40d8f0
mov edx, dword [esp]
mov eax, dword [esi + 0x30]
mov dword [esp], eax
xor eax, eax
test dl, dl
jne 0x40d962
mov dword [esp + 8], ecx
mov al, 1
test byte [esi + 0xa], 4
jne 0x40d93a
cmp dword [esi + 0x3c], 0x30
setb al
movzx edx, al
mov ecx, esi
call fcn.004106c0
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x40dad9
mov edx, dword [esi + 0x30]
sub edx, dword [esp]
inc edx
cmp edx, ecx
mov ecx, dword [esp + 8]
jb 0x40dadd
mov edx, ecx
mov ecx, dword [esi + 0x1c]
sub ecx, dword [esi + 0x40]
cmp ecx, dword [esi + 0x24]
mov ecx, edx
ja 0x40dadd
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 0x40d9a4
jmp 0x40db06
shr ebx, 8
mov dword [ebp], ebx
add eax, 0xfffffff8
mov dword [edi], eax
cmp eax, 7
jbe 0x40db02
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x40d990
lea eax, [ecx + 1]
mov dword [esi + 0x30], eax
mov byte [ecx], bl
mov eax, dword [esi + 0x44]
mov ebx, dword [esi + 0x48]
jmp 0x40d990
mov ecx, eax
not ecx
or ecx, 0xfff
add ecx, eax
inc ecx
xor eax, eax
cmp dword [0x448e1c], ecx
je 0x40da11
cmp dword [str.ufDk], ecx
je 0x40da11
mov eax, 0x40
cmp dword [0x448e24], ecx
je 0x40da11
cmp dword [0x448e28], ecx
je 0x40da11
cmp dword [0x448e2c], ecx
je 0x40da11
cmp dword [0x448e30], ecx
je 0x40da11
xor eax, eax
cmp dword [0x448e34], 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 0x40dac1
movzx eax, al
shl eax, cl
or eax, ebx
mov dword [esi + 0x48], eax
add ecx, 8
mov dword [esi + 0x44], ecx
jmp 0x40da8e
shr eax, 8
mov dword [esi + 0x48], eax
mov edi, ecx
xor edi, 0xfffffff7
and ecx, 0xfffffff7
lea ecx, [edi + ecx*2]
inc ecx
mov dword [esi + 0x44], ecx
cmp ecx, 7
jbe 0x40d8ac
mov edi, dword [esi + 0x30]
cmp edi, dword [esi + 0x34]
jae 0x40da70
lea ecx, [edi + 1]
mov dword [esi + 0x30], ecx
mov byte [edi], al
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x48]
jmp 0x40da70
shr ebx, 8
mov dword [esi + 0x48], ebx
add ecx, 0xfffffff8
mov dword [esi + 0x44], ecx
cmp ecx, 7
jbe 0x40da58
mov edi, dword [esi + 0x30]
cmp edi, dword [esi + 0x34]
jae 0x40dab0
lea ecx, [edi + 1]
mov dword [esi + 0x30], ecx
mov byte [edi], bl
mov ecx, dword [esi + 0x44]
mov ebx, dword [esi + 0x48]
jmp 0x40dab0
mov ecx, dword [esp + 8]
test eax, eax
jne 0x40dc48
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.004106c0
jmp 0x40dc48
test eax, eax
je 0x40db48
mov dword [edi], 8
mov ecx, 8
jmp 0x40db30
shr ebx, 8
mov dword [ebp], ebx
add ecx, 0xfffffff8
mov dword [edi], ecx
cmp ecx, 7
jbe 0x40db4a
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x40db20
lea ecx, [eax + 1]
mov dword [esi + 0x30], ecx
mov byte [eax], bl
mov ecx, dword [esi + 0x44]
mov ebx, dword [esi + 0x48]
jmp 0x40db20
xor ecx, ecx
movzx eax, word [esi + 0x3c]
shl eax, cl
or eax, ebx
mov dword [esi + 0x48], eax
or ecx, 0x10
mov dword [esi + 0x44], ecx
jmp 0x40db70
shr eax, 8
mov dword [ebp], eax
add ecx, 0xfffffff8
mov dword [edi], ecx
cmp ecx, 7
jbe 0x40db88
mov edx, dword [esi + 0x30]
cmp edx, dword [esi + 0x34]
jae 0x40db60
lea ecx, [edx + 1]
mov dword [esi + 0x30], ecx
mov byte [edx], al
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x48]
jmp 0x40db60
mov edx, 0xffff
xor edx, dword [esi + 0x3c]
movzx ebx, dx
shl ebx, cl
mov dword [esi + 0x3c], edx
or eax, ebx
mov dword [esi + 0x48], eax
mov edx, ecx
and edx, 0x10
xor ecx, 0x10
lea ecx, [ecx + edx*2]
mov dword [esi + 0x44], ecx
jmp 0x40dbc0
shr eax, 8
mov dword [ebp], eax
add ecx, 0xfffffff8
mov dword [edi], ecx
cmp ecx, 7
jbe 0x40dbd8
mov edx, dword [esi + 0x30]
cmp edx, dword [esi + 0x34]
jae 0x40dbb0
lea ecx, [edx + 1]
mov dword [esi + 0x30], ecx
mov byte [edx], al
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x48]
jmp 0x40dbb0
xor dword [esi + 0x3c], 0xffff
je 0x40dc48
xor edx, edx
jmp 0x40dbf6
inc edx
cmp edx, dword [esi + 0x3c]
jae 0x40dc48
mov ebx, dword [esi + 0x40]
add ebx, edx
and ebx, 0x7fff
movzx ebx, byte [esi + ebx + 0x90]
shl ebx, cl
or eax, ebx
mov dword [esi + 0x48], eax
add ecx, 8
mov dword [esi + 0x44], ecx
jmp 0x40dc30
shr eax, 8
mov dword [ebp], eax
add ecx, 0xfffffff8
mov dword [edi], ecx
cmp ecx, 7
jbe 0x40dbf0
mov ebx, dword [esi + 0x30]
cmp ebx, dword [esi + 0x34]
jae 0x40dc20
lea ecx, [ebx + 1]
mov dword [esi + 0x30], ecx
mov byte [ebx], al
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x48]
jmp 0x40dc20
mov eax, dword [esp + 4]
test eax, eax
je 0x40dd2b
cmp eax, 4
jne 0x40dc9b
cmp dword [edi], 0
je 0x40dd1f
mov dword [edi], 8
mov ecx, 8
jmp 0x40dc82
shr dword [ebp], 8
add ecx, 0xfffffff8
mov dword [edi], ecx
cmp ecx, 7
jbe 0x40dd21
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jae 0x40dc70
movzx ecx, byte [esi + 0x48]
lea edx, [eax + 1]
mov dword [esi + 0x30], edx
mov byte [eax], cl
mov ecx, dword [esi + 0x44]
jmp 0x40dc70
mov eax, dword [edi]
add eax, 3
mov dword [edi], eax
cmp eax, 8
jae 0x40dcfe
test eax, eax
je 0x40df0c
mov dword [edi], 8
mov eax, 8
jmp 0x40dcce
shr dword [ebp], 8
lea eax, [ecx - 8]
mov dword [edi], eax
cmp eax, 7
jbe 0x40dd17
mov edx, dword [esi + 0x30]
mov ecx, eax
cmp edx, dword [esi + 0x34]
jae 0x40dcc0
movzx eax, byte [esi + 0x48]
lea ecx, [edx + 1]
mov dword [esi + 0x30], ecx
mov byte [edx], al
mov ecx, dword [esi + 0x44]
jmp 0x40dcc0
shr dword [ebp], 8
add eax, 0xfffffff8
mov dword [edi], eax
cmp eax, 7
jbe 0x40dca7
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x40dcf0
movzx eax, byte [esi + 0x48]
lea edx, [ecx + 1]
mov dword [esi + 0x30], edx
mov byte [ecx], al
mov eax, dword [esi + 0x44]
jmp 0x40dcf0
add ecx, 8
jmp 0x40df11
xor ecx, ecx
test byte [esi + 9], 0x10
jne 0x40ddf3
lea eax, [esi + 0x8192]
lea edi, [esi + 0x9272]
lea ebx, [esi + 0x9273]
push 0x280
push 0
push eax
call fcn.00417ba0
add esp, 0xc
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], edi
mov dword [esi + 0x38], 8
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x3c]
add dword [esi + 0x40], ecx
mov dword [esi + 0x3c], 0
inc dword [esi + 0x64]
mov ecx, dword [esp + 0xc]
mov edi, ecx
not edi
and edi, eax
not eax
and eax, ecx
sub edi, eax
je 0x40dfee
cmp dword [esi], 0
je 0x40ddcb
mov eax, dword [esi + 0x84]
mov ecx, dword [esi + 0x70]
mov edx, dword [esi + 0x78]
mov ebx, ecx
not ebx
and ebx, eax
not eax
and eax, ecx
sub ebx, eax
mov dword [edx], ebx
lea eax, [esi + 0x39272]
push dword [esi + 4]
push edi
push eax
call dword [esi]
add esp, 0xc
test eax, eax
jne 0x40dfee
mov dword [esi + 0x6c], 0xffffffff
mov eax, 0xffffffff
jmp 0x40dff1
lea eax, [esi + 0x39272]
cmp ecx, eax
je 0x40dfa4
mov eax, dword [esi + 0x8c]
mov ecx, eax
and ecx, edi
xor eax, edi
lea eax, [eax + ecx*2]
mov dword [esi + 0x8c], eax
jmp 0x40dfee
mov edx, dword [esi + 0x18]
mov dword [esp + 4], edx
shr edx, 0x18
shl edx, cl
or edx, dword [esi + 0x48]
mov dword [esi + 0x48], edx
or ecx, 8
mov dword [esi + 0x44], ecx
jmp 0x40de2e
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 [ebp], edx
lea ecx, [eax - 8]
mov dword [edi], ecx
cmp ecx, 7
jbe 0x40de3a
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jb 0x40de10
mov eax, ecx
jmp 0x40de1e
mov ebx, dword [esp + 4]
shr ebx, 0x10
movzx ebx, bl
shl ebx, cl
or ebx, edx
mov dword [ebp], ebx
mov dword [edi], eax
jmp 0x40de6e
lea eax, [ecx + 1]
mov dword [esi + 0x30], eax
mov byte [ecx], bl
mov ecx, dword [esi + 0x44]
mov ebx, dword [esi + 0x48]
shr ebx, 8
mov dword [ebp], ebx
lea eax, [ecx - 8]
mov dword [edi], eax
cmp eax, 7
jbe 0x40de7a
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jb 0x40de50
mov ecx, eax
jmp 0x40de5e
mov dword [esp], ecx
mov ecx, dword [esp + 4]
movzx edx, ch
mov ecx, eax
shl edx, cl
mov ecx, dword [esp]
or edx, ebx
mov dword [ebp], edx
mov dword [edi], ecx
jmp 0x40debe
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 [ebp], edx
lea ecx, [eax - 8]
mov dword [edi], ecx
cmp ecx, 7
jbe 0x40deca
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jb 0x40dea0
mov eax, ecx
jmp 0x40deae
movzx ebx, byte [esp + 4]
shl ebx, cl
or ebx, edx
mov dword [ebp], ebx
mov dword [edi], eax
jmp 0x40def4
shr ebx, 8
mov dword [ebp], ebx
add eax, 0xfffffff8
mov dword [edi], eax
cmp eax, 7
jbe 0x40dd2b
mov ecx, dword [esi + 0x30]
cmp ecx, dword [esi + 0x34]
jae 0x40dee0
lea eax, [ecx + 1]
mov dword [esi + 0x30], eax
mov byte [ecx], bl
mov eax, dword [esi + 0x44]
mov ebx, dword [esi + 0x48]
jmp 0x40dee0
mov ecx, 0x10
mov eax, dword [ebp]
mov dword [edi], ecx
jmp 0x40df38
shr eax, 8
mov dword [ebp], eax
mov edx, ecx
or edx, 0xfffffff7
and ecx, 0xfffffff7
add ecx, edx
inc ecx
mov dword [edi], ecx
cmp ecx, 7
jbe 0x40df50
mov edx, dword [esi + 0x30]
cmp edx, dword [esi + 0x34]
jae 0x40df20
lea ecx, [edx + 1]
mov dword [esi + 0x30], ecx
mov byte [edx], al
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x48]
jmp 0x40df20
mov edx, 0xffff
shl edx, cl
or eax, edx
mov dword [ebp], eax
add ecx, 0x10
mov dword [edi], ecx
jmp 0x40df8c
shr eax, 8
mov dword [ebp], eax
mov edx, ecx
or edx, 0xfffffff7
and ecx, 0xfffffff7
add ecx, edx
inc ecx
mov dword [edi], ecx
cmp ecx, 7
jbe 0x40dd2b
mov edx, dword [esi + 0x30]
cmp edx, dword [esi + 0x34]
jae 0x40df70
lea ecx, [edx + 1]
mov dword [esi + 0x30], ecx
mov byte [edx], al
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x48]
jmp 0x40df70
mov edx, dword [esi + 0x7c]
mov ecx, dword [esi + 0x8c]
mov ebx, dword [edx]
mov edx, ecx
xor edx, ebx
mov ebp, ecx
not ebp
and ebp, ebx
add ebp, ebp
sub ebp, edx
sub ebx, ecx
cmp edi, ebp
cmovb ebx, edi
add ecx, dword [esi + 0x74]
push ebx
push eax
push ecx
call fcn.004178c0
add esp, 0xc
add dword [esi + 0x8c], ebx
mov ecx, ebx
xor ecx, edi
mov eax, ebx
not eax
and eax, edi
add eax, eax
sub eax, ecx
je 0x40dfee
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], eax
mov eax, dword [esi + 0x5c]
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret