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

Disassembly:
mov eax, 0x2584
call fcn.0043f4b0
mov eax, dword [0x46e040]
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 0x40e534
cmp dword [ebx + 0x48], 0
je 0x40e52d
mov ebp, dword [esp + 0x259c]
test ebp, ebp
je 0x40e068
nop dword [eax]
test eax, eax
je 0x40e52d
cmp dword [ebx + 0x38], 0
je 0x40e52d
test esi, esi
je 0x40e083
mov ecx, 0x116
lea edi, [esp + 0x60]
rep movsd dword es:[edi], dword [esi]
jmp 0x40e095
lea eax, [esp + 0x60]
push eax
call fcn.0040e660
test eax, eax
je 0x40e534
cmp dword ds:[esp + 0xa4], 0
jne 0x40e526
mov eax, dword [esp + 0x80]
or eax, dword [esp + 0x84]
je 0x40e526
test byte ds:[esp + 0x74], 0x61
je 0x40e0ce
mov dword [ebx + 0x1c], 5
jmp 0x40e534
mov ax, word [esp + 0x76]
test ax, ax
je 0x40e0ea
cmp ax, 8
je 0x40e0ea
mov dword [ebx + 0x1c], 4
jmp 0x40e534
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 0x40e118
jb 0x40e10c
cmp ebp, eax
jae 0x40e118
mov dword [ebx + 0x1c], 0x1a
jmp 0x40e534
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 [0x44227c]
call esi
cmp eax, 0x1e
jne 0x40e51d
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 0x40e514
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 0x40e514
jb 0x40e217
cmp edx, dword [ebx]
ja 0x40e514
cmp word ds:[esp + 0x76], 0
je 0x40e4c5
mov eax, dword [ebx + 0x48]
mov dword [esp + 0x4b8], 0
mov ecx, dword [eax + 0x48]
test ecx, ecx
je 0x40e265
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 0x40e2f3
test ebp, ebp
ja 0x40e298
jb 0x40e273
cmp edi, 0x10000
jae 0x40e298
mov eax, ebp
mov dword [esp + 0x30], edi
mov dword [esp + 0x50], ebp
test eax, eax
jne 0x40e28c
cmp edi, 0x7fffffff
jbe 0x40e2a7
mov dword [ebx + 0x1c], 0x1b
jmp 0x40e534
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 [0x44227c]
call esi
mov dword ds:[esp + 0x34], eax
test eax, eax
jne 0x40e2d0
mov dword [ebx + 0x1c], 0x10
jmp 0x40e534
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 0x40e3bd
mov eax, dword [ebx + 0x48]
cmp dword [eax + 0x48], 0
jne 0x40e3bd
mov eax, dword [esp + 0x50]
cmp eax, ecx
ja 0x40e35a
jb 0x40e354
cmp esi, edx
jae 0x40e35a
mov edi, esi
mov ebp, eax
jmp 0x40e35e
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 [0x44227c]
call esi
xor ecx, ecx
cmp eax, edi
jne 0x40e446
cmp ecx, ebp
jne 0x40e446
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 0x40e3d5
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.0040a960
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 0x40e452
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x30]
jmp 0x40e320
or edi, 0xffffffff
mov dword [ebx + 0x1c], 0xb
jmp 0x40e49b
test edx, edx
jne 0x40e497
mov ecx, dword ds:[esp + 0x88]
cmp eax, ecx
jne 0x40e48b
cmp esi, dword [esp + 0x8c]
jne 0x40e48b
mov edx, dword [esp + 0x54]
push ecx
xor ecx, ecx
call fcn.0040a7c0
cmp eax, dword [esp + 0x78]
je 0x40e497
mov dword [ebx + 0x1c], 0xe
or edi, 0xffffffff
jmp 0x40e49b
mov dword [ebx + 0x1c], 0xd
or edi, 0xffffffff
jmp 0x40e49b
mov edi, dword [esp + 0x18]
mov eax, dword [ebx + 0x48]
cmp dword [eax + 0x48], 0
jne 0x40e4b8
push dword [esp + 0x34]
mov esi, dword [ebx + 0x2c]
mov ecx, esi
push dword [ebx + 0x34]
call dword [0x44227c]
call esi
xor eax, eax
test edi, edi
sete al
jmp 0x40e536
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 [0x44227c]
call esi
xor ecx, ecx
cmp eax, edi
jne 0x40e51d
cmp ecx, dword [esp + 0x44]
jne 0x40e51d
push dword ds:[esp + 0x88]
mov edx, ebp
call fcn.0040a7c0
cmp eax, dword [esp + 0x78]
je 0x40e526
mov dword [ebx + 0x1c], 0xe
jmp 0x40e534
mov dword [ebx + 0x1c], 9
jmp 0x40e534
mov dword [ebx + 0x1c], 0x14
jmp 0x40e534
mov eax, 1
jmp 0x40e536
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.004218f3
add esp, 0x2584
ret 0x18