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

Disassembly:
mov eax, 0x2584
call fcn.0043f2f0
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 0x40e4b4
cmp dword [ebx + 0x48], 0
je 0x40e4ad
mov ebp, dword [esp + 0x259c]
test ebp, ebp
je 0x40dfe8
nop dword [eax]
test eax, eax
je 0x40e4ad
cmp dword [ebx + 0x38], 0
je 0x40e4ad
test esi, esi
je 0x40e003
mov ecx, 0x116
lea edi, [esp + 0x60]
rep movsd dword es:[edi], dword [esi]
jmp 0x40e015
lea eax, [esp + 0x60]
push eax
call fcn.0040e5e0
test eax, eax
je 0x40e4b4
cmp dword ds:[esp + 0xa4], 0
jne 0x40e4a6
mov eax, dword [esp + 0x80]
or eax, dword [esp + 0x84]
je 0x40e4a6
test byte ds:[esp + 0x74], 0x61
je 0x40e04e
mov dword [ebx + 0x1c], 5
jmp 0x40e4b4
mov ax, word [esp + 0x76]
test ax, ax
je 0x40e06a
cmp ax, 8
je 0x40e06a
mov dword [ebx + 0x1c], 4
jmp 0x40e4b4
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 0x40e098
jb 0x40e08c
cmp ebp, eax
jae 0x40e098
mov dword [ebx + 0x1c], 0x1a
jmp 0x40e4b4
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 [0x44127c]
call esi
cmp eax, 0x1e
jne 0x40e49d
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 0x40e494
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 0x40e494
jb 0x40e197
cmp edx, dword [ebx]
ja 0x40e494
cmp word ds:[esp + 0x76], 0
je 0x40e445
mov eax, dword [ebx + 0x48]
mov dword [esp + 0x4b8], 0
mov ecx, dword [eax + 0x48]
test ecx, ecx
je 0x40e1e5
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 0x40e273
test ebp, ebp
ja 0x40e218
jb 0x40e1f3
cmp edi, 0x10000
jae 0x40e218
mov eax, ebp
mov dword [esp + 0x30], edi
mov dword [esp + 0x50], ebp
test eax, eax
jne 0x40e20c
cmp edi, 0x7fffffff
jbe 0x40e227
mov dword [ebx + 0x1c], 0x1b
jmp 0x40e4b4
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 [0x44127c]
call esi
mov dword ds:[esp + 0x34], eax
test eax, eax
jne 0x40e250
mov dword [ebx + 0x1c], 0x10
jmp 0x40e4b4
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 0x40e33d
mov eax, dword [ebx + 0x48]
cmp dword [eax + 0x48], 0
jne 0x40e33d
mov eax, dword [esp + 0x50]
cmp eax, ecx
ja 0x40e2da
jb 0x40e2d4
cmp esi, edx
jae 0x40e2da
mov edi, esi
mov ebp, eax
jmp 0x40e2de
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 [0x44127c]
call esi
xor ecx, ecx
cmp eax, edi
jne 0x40e3c6
cmp ecx, ebp
jne 0x40e3c6
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 0x40e355
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.0040a8e0
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 0x40e3d2
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x30]
jmp 0x40e2a0
or edi, 0xffffffff
mov dword [ebx + 0x1c], 0xb
jmp 0x40e41b
test edx, edx
jne 0x40e417
mov ecx, dword ds:[esp + 0x88]
cmp eax, ecx
jne 0x40e40b
cmp esi, dword [esp + 0x8c]
jne 0x40e40b
mov edx, dword [esp + 0x54]
push ecx
xor ecx, ecx
call fcn.0040a760
cmp eax, dword [esp + 0x78]
je 0x40e417
mov dword [ebx + 0x1c], 0xe
or edi, 0xffffffff
jmp 0x40e41b
mov dword [ebx + 0x1c], 0xd
or edi, 0xffffffff
jmp 0x40e41b
mov edi, dword [esp + 0x18]
mov eax, dword [ebx + 0x48]
cmp dword [eax + 0x48], 0
jne 0x40e438
push dword [esp + 0x34]
mov esi, dword [ebx + 0x2c]
mov ecx, esi
push dword [ebx + 0x34]
call dword [0x44127c]
call esi
xor eax, eax
test edi, edi
sete al
jmp 0x40e4b6
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 [0x44127c]
call esi
xor ecx, ecx
cmp eax, edi
jne 0x40e49d
cmp ecx, dword [esp + 0x44]
jne 0x40e49d
push dword ds:[esp + 0x88]
mov edx, ebp
call fcn.0040a760
cmp eax, dword [esp + 0x78]
je 0x40e4a6
mov dword [ebx + 0x1c], 0xe
jmp 0x40e4b4
mov dword [ebx + 0x1c], 9
jmp 0x40e4b4
mov dword [ebx + 0x1c], 0x14
jmp 0x40e4b4
mov eax, 1
jmp 0x40e4b6
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.00421733
add esp, 0x2584
ret 0x18