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

Disassembly:
mov eax, 0x2584
call fcn.0043ece0
mov eax, dword [0x46d040]
xor eax, esp
mov dword [esp + 0x257c], eax
mov eax, dword [esp + 0x2588]
xorps xmm0, xmm0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x25a8]
mov ebx, ecx
mov dword [esp + 0x50], eax
movlpd qword [esp + 0x54], xmm0
movlpd qword [esp + 0x34], xmm0
push edi
test ebx, ebx
je 0x40e194
cmp dword [ebx + 0x48], 0
je 0x40e18d
mov ebp, dword [esp + 0x259c]
test ebp, ebp
je 0x40dcc8
nop dword [eax]
test eax, eax
je 0x40e18d
cmp dword [ebx + 0x38], 0
je 0x40e18d
test esi, esi
je 0x40dce3
mov ecx, 0x116
lea edi, [esp + 0x60]
rep movsd dword es:[edi], dword [esi]
jmp 0x40dcf5
lea eax, [esp + 0x60]
push eax
call fcn.0040e2c0
test eax, eax
je 0x40e194
cmp dword ds:[esp + 0xa4], 0
jne 0x40e186
mov eax, dword [esp + 0x80]
or eax, dword [esp + 0x84]
je 0x40e186
test byte ds:[esp + 0x74], 0x61
je 0x40dd2e
mov dword [ebx + 0x1c], 5
jmp 0x40e194
mov ax, word [esp + 0x76]
test ax, ax
je 0x40dd4a
cmp ax, 8
je 0x40dd4a
mov dword [ebx + 0x1c], 4
jmp 0x40e194
mov ecx, dword [esp + 0x8c]
xor edx, edx
mov eax, dword [esp + 0x88]
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], ecx
cmp edx, ecx
ja 0x40dd78
jb 0x40dd6c
cmp ebp, eax
jae 0x40dd78
mov dword [ebx + 0x1c], 0x1a
jmp 0x40e194
mov ecx, dword [esp + 0x9c]
lea edx, [esp + 0x256c]
mov eax, dword [esp + 0x98]
mov esi, dword [ebx + 0x38]
push 0x1e
push edx
push ecx
push eax
push dword [ebx + 0x44]
mov dword [esp + 0x60], ecx
mov ecx, esi
mov dword [esp + 0x2c], eax
call dword [0x441280]
call esi
cmp eax, 0x1e
jne 0x40e17d
movzx ecx, byte [esp + 0x256f]
movzx eax, byte [esp + 0x256e]
shl ecx, 8
or ecx, eax
movzx eax, byte [esp + 0x256d]
shl ecx, 8
or ecx, eax
movzx eax, byte [esp + 0x256c]
shl ecx, 8
or ecx, eax
cmp ecx, 0x4034b50
jne 0x40e174
movzx eax, byte [esp + 0x2587]
cdq
mov ebp, eax
mov edi, edx
movzx eax, byte [esp + 0x2586]
shld edi, ebp, 8
cdq
or edi, edx
shl ebp, 8
or ebp, eax
movzx eax, byte [esp + 0x2589]
cdq
mov ecx, eax
mov esi, edx
movzx eax, byte [esp + 0x2588]
shld esi, ecx, 8
cdq
shl ecx, 8
or esi, edx
or ecx, eax
add ebp, ecx
adc edi, esi
add ebp, dword [esp + 0x18]
adc edi, dword [esp + 0x4c]
add ebp, 0x1e
mov edx, ebp
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x84]
adc edi, 0
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x80]
add edx, edi
mov ecx, dword [esp + 0x20]
mov eax, ecx
adc eax, ebp
cmp eax, dword [ebx + 4]
ja 0x40e174
jb 0x40de77
cmp edx, dword [ebx]
ja 0x40e174
cmp word ds:[esp + 0x76], 0
je 0x40e125
mov eax, dword [ebx + 0x48]
mov dword [esp + 0x4b8], 0
mov ecx, dword [eax + 0x48]
test ecx, ecx
je 0x40dec5
mov eax, dword [esp + 0x14]
xorps xmm0, xmm0
add eax, ecx
movlpd qword [esp + 0x18], xmm0
mov ecx, dword [esp + 0x1c]
mov esi, edi
mov edx, dword [esp + 0x18]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x50], ebp
jmp 0x40df53
test ebp, ebp
ja 0x40def8
jb 0x40ded3
cmp edi, 0x10000
jae 0x40def8
mov eax, ebp
mov dword [esp + 0x30], edi
mov dword [esp + 0x50], ebp
test eax, eax
jne 0x40deec
cmp edi, 0x7fffffff
jbe 0x40df07
mov dword [ebx + 0x1c], 0x1b
jmp 0x40e194
mov edi, 0x10000
xor eax, eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x50], eax
mov esi, dword [ebx + 0x28]
mov ecx, esi
push edi
push 1
push dword [ebx + 0x34]
call dword [0x441280]
call esi
mov dword ds:[esp + 0x34], eax
test eax, eax
jne 0x40df30
mov dword [ebx + 0x1c], 0x10
jmp 0x40e194
mov edx, dword [esp + 0x80]
xorps xmm0, xmm0
mov ecx, dword [esp + 0x84]
mov esi, dword [esp + 0x30]
movlpd qword [esp + 0x18], xmm0
mov ebp, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x38], eax
nop dword [eax + eax]
mov eax, dword [esp + 0x88]
sub eax, dword [esp + 0x24]
mov dword [esp + 0x48], eax
mov eax, edi
or eax, ebp
jne 0x40e01d
mov eax, dword [ebx + 0x48]
cmp dword [eax + 0x48], 0
jne 0x40e01d
mov eax, dword [esp + 0x50]
cmp eax, ecx
ja 0x40dfba
jb 0x40dfb4
cmp esi, edx
jae 0x40dfba
mov edi, esi
mov ebp, eax
jmp 0x40dfbe
mov edi, edx
mov ebp, ecx
mov esi, dword [ebx + 0x38]
mov ecx, esi
push edi
push dword [esp + 0x38]
push dword [esp + 0x28]
push dword [esp + 0x20]
push dword [ebx + 0x44]
call dword [0x441280]
call esi
xor ecx, ecx
cmp eax, edi
jne 0x40e0a6
cmp ecx, ebp
jne 0x40e0a6
add dword [esp + 0x14], edi
xorps xmm0, xmm0
mov edx, dword [esp + 0x2c]
adc dword [esp + 0x20], ebp
sub edx, edi
mov ecx, dword [esp + 0x28]
movlpd qword [esp + 0x38], xmm0
sbb ecx, ebp
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x58], eax
mov esi, dword [esp + 0x38]
mov eax, edx
or eax, ecx
mov dword [esp + 0x44], edi
mov eax, 6
jne 0x40e035
mov eax, 4
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x34]
push eax
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esp + 0x2c]
lea edx, [esi + edx]
add eax, ecx
push eax
push ecx
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x4cc]
call fcn.0040a5c0
sub edi, dword [esp + 0x44]
mov edx, eax
mov eax, dword [esp + 0x24]
sbb ebp, 0
mov dword [esp + 0x18], edx
add esi, dword [esp + 0x44]
mov dword [esp + 0x38], esi
adc dword [esp + 0x58], 0
add eax, dword [esp + 0x48]
mov esi, dword [esp + 0x4c]
adc esi, 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x4c], esi
cmp edx, 1
jne 0x40e0b2
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x30]
jmp 0x40df80
or edi, 0xffffffff
mov dword [ebx + 0x1c], 0xb
jmp 0x40e0fb
test edx, edx
jne 0x40e0f7
mov ecx, dword ds:[esp + 0x88]
cmp eax, ecx
jne 0x40e0eb
cmp esi, dword [esp + 0x8c]
jne 0x40e0eb
mov edx, dword [esp + 0x54]
push ecx
xor ecx, ecx
call fcn.0040a440
cmp eax, dword [esp + 0x78]
je 0x40e0f7
mov dword [ebx + 0x1c], 0xe
or edi, 0xffffffff
jmp 0x40e0fb
mov dword [ebx + 0x1c], 0xd
or edi, 0xffffffff
jmp 0x40e0fb
mov edi, dword [esp + 0x18]
mov eax, dword [ebx + 0x48]
cmp dword [eax + 0x48], 0
jne 0x40e118
push dword [esp + 0x34]
mov esi, dword [ebx + 0x2c]
mov ecx, esi
push dword [ebx + 0x34]
call dword [0x441280]
call esi
xor eax, eax
test edi, edi
sete al
jmp 0x40e196
mov edi, dword ds:[esp + 0x48]
mov ebp, dword [esp + 0x54]
mov esi, dword [ebx + 0x38]
push edi
push ebp
push ecx
push dword [esp + 0x20]
mov ecx, esi
push dword [ebx + 0x44]
call dword [0x441280]
call esi
xor ecx, ecx
cmp eax, edi
jne 0x40e17d
cmp ecx, dword [esp + 0x44]
jne 0x40e17d
push dword ds:[esp + 0x88]
mov edx, ebp
call fcn.0040a440
cmp eax, dword [esp + 0x78]
je 0x40e186
mov dword [ebx + 0x1c], 0xe
jmp 0x40e194
mov dword [ebx + 0x1c], 9
jmp 0x40e194
mov dword [ebx + 0x1c], 0x14
jmp 0x40e194
mov eax, 1
jmp 0x40e196
mov dword [ebx + 0x1c], 0x18
xor eax, eax
mov ecx, dword [esp + 0x258c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00421141
add esp, 0x2584
ret 0x18