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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x7c
mov ebp, edx
mov ebx, ecx
call fcn.0040a579
test al, al
jne 0x40b14d
mov ecx, ebx
mov edx, ebp
call fcn.00409e52
mov edi, eax
mov eax, dword [ebx + 0x28]
movzx ecx, word [ebx + 0x38]
mov edx, dword [ebp + 8]
mov esi, dword [ebx + 0x1c]
mov dword [esp + 4], ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x38], edi
mov dword [esp], eax
mov eax, dword [ebx + 0x24]
mov dword [esp + 0x1c], ecx
and edi, ecx
mov ecx, dword [ebx + 0x18]
xor ebx, ebx
mov dword [esp + 0x34], edx
mov dword [esp + 8], eax
mov al, byte [ebp + 4]
mov dword [esp + 0x14], ecx
mov byte [esp + 0xf], al
mov eax, dword [ebp]
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 4]
mov dword [esp + 0x3c], eax
mov eax, edi
mov edi, eax
xor eax, eax
cmp edi, esi
jae 0x40ac6a
movzx ebp, word [ecx + edi*4]
cmp ebp, 0xffff
je 0x40ad22
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x1c]
movzx eax, word [ecx + edi*4 + 2]
mov edx, edi
mov ecx, ebx
and ecx, eax
sub edx, ecx
and edx, ebx
mov ebx, dword [esp + 0x10]
cmp edx, ebx
jb 0x40ae38
cmp ax, word [esp + 0x38]
jne 0x40ad17
cmp dword [esp], ebp
jbe 0x40b124
cmp dword [esp + 0x44], 0
mov ecx, dword [esp + 8]
sete al
imul edx, ebp, 0x34
mov ecx, dword [ecx + edx + 0x20]
mov dword [esp + 0x40], edx
test ecx, ecx
setne dl
cmp dl, al
je 0x40ad17
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x40]
test ecx, ecx
lea eax, [eax + edx + 0x20]
je 0x40ad0a
mov ecx, dword [esp + 0x34]
cmp dword [eax + 8], ecx
jne 0x40ad17
push dword [esp + 0x34]
push dword [esp + 0x40]
push dword [eax + 4]
call fcn.004e5584
add esp, 0xc
test eax, eax
jne 0x40ad17
jmp 0x40afd9
mov cl, byte [esp + 0xf]
cmp byte [eax + 4], cl
je 0x40afd9
mov ecx, dword [esp + 0x14]
inc ebx
inc edi
jmp 0x40ac68
mov edx, dword [esp + 0x18]
mov ebp, dword [esp + 0x90]
mov ebx, dword [esp]
movsd xmm0, qword [edx]
movsd xmm1, qword [edx + 8]
mov eax, dword [ebp + 0x10]
movsd xmm2, qword [ebp + 8]
cmp ebx, 0x7fff
movsd qword [esp + 0x48], xmm0
movsd xmm0, qword [ebp]
movsd qword [esp + 0x50], xmm1
mov dword [esp + 0x78], eax
movsd qword [esp + 0x70], xmm2
movsd qword [esp + 0x68], xmm0
ja 0x40b17c
mov eax, dword [esp + 4]
movsd xmm0, qword [edx]
movsd xmm1, qword [edx + 8]
lea ecx, [eax + 0x20]
mov eax, dword [ebp + 0x10]
movsd qword [esp + 0x60], xmm1
movsd qword [esp + 0x58], xmm0
movsd xmm0, qword [ebp]
movsd xmm1, qword [ebp + 8]
cmp ebx, dword [ecx]
mov dword [esp + 0x30], eax
mov eax, ebx
movsd qword [esp + 0x28], xmm1
movsd qword [esp + 0x20], xmm0
jne 0x40adc5
mov edx, ebx
call fcn.004100d5
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0x28]
mov esi, dword [ecx + 0x1c]
mov ecx, dword [ecx + 0x24]
mov dword [esp + 8], ecx
mov ebp, dword [esp + 8]
imul ecx, eax, 0x34
inc eax
cmp edi, esi
mov dword [ebp + ecx], 0
movsd xmm0, qword [esp + 0x20]
movsd xmm1, qword [esp + 0x28]
movsd qword [ebp + ecx + 0xc], xmm0
movsd qword [ebp + ecx + 0x14], xmm1
mov edx, dword [esp + 0x30]
mov dword [ebp + ecx + 0x1c], edx
mov edx, dword [esp + 0x38]
movsd xmm0, qword [esp + 0x58]
movsd xmm1, qword [esp + 0x60]
movsd qword [ebp + ecx + 0x20], xmm0
movsd qword [ebp + ecx + 0x28], xmm1
mov word [ebp + ecx + 0x30], dx
mov ecx, dword [esp + 4]
mov dword [ecx + 0x28], eax
jae 0x40b133
mov eax, ecx
mov eax, dword [ecx + 0x18]
mov word [eax + edi*4], bx
mov word [eax + edi*4 + 2], dx
jmp 0x40afd1
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x18]
mov ebp, dword [esp + 0x90]
cmp ebx, 0x200
mov ebx, dword [esp]
setae byte [esp + 0x1c]
mov eax, dword [ecx]
movsd xmm0, qword [edx]
movsd xmm1, qword [edx + 8]
xor eax, 2
movsd qword [esp + 0x50], xmm1
movsd qword [esp + 0x48], xmm0
movsd xmm0, qword [ebp]
movsd xmm1, qword [ebp + 8]
or eax, dword [ecx + 4]
mov eax, dword [ebp + 0x10]
movsd qword [esp + 0x70], xmm1
movsd qword [esp + 0x68], xmm0
setne byte [esp + 0x10]
cmp ebx, 0x7fff
mov dword [esp + 0x78], eax
ja 0x40b17c
movsd xmm0, qword [edx]
add ecx, 0x20
mov eax, dword [ebp + 0x10]
movsd xmm1, qword [edx + 8]
movsd xmm2, qword [ebp + 8]
cmp ebx, dword [ecx]
movsd qword [esp + 0x58], xmm0
movsd xmm0, qword [ebp]
mov dword [esp + 0x30], eax
mov eax, ebx
movsd qword [esp + 0x60], xmm1
movsd qword [esp + 0x28], xmm2
movsd qword [esp + 0x20], xmm0
jne 0x40aefb
mov edx, dword [esp]
call fcn.004100d5
mov edx, dword [esp + 4]
mov esi, dword [edx + 0x18]
mov ecx, dword [edx + 0x24]
mov eax, dword [edx + 0x28]
mov dword [esp + 0x14], esi
mov esi, dword [edx + 0x1c]
mov dword [esp + 8], ecx
mov cl, byte [esp + 0x10]
mov ebp, dword [esp + 8]
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x10], 0
and byte [esp + 0x1c], cl
imul ecx, eax, 0x34
inc eax
mov dword [ebp + ecx], 0
movsd xmm0, qword [esp + 0x20]
movsd xmm1, qword [esp + 0x28]
movsd qword [ebp + ecx + 0xc], xmm0
movsd qword [ebp + ecx + 0x14], xmm1
mov edx, dword [esp + 0x30]
mov dword [ebp + ecx + 0x1c], edx
mov edx, dword [esp + 4]
movsd xmm0, qword [esp + 0x58]
movsd xmm1, qword [esp + 0x60]
movsd qword [ebp + ecx + 0x20], xmm0
movsd qword [ebp + ecx + 0x28], xmm1
mov word [ebp + ecx + 0x30], bx
mov dword [edx + 0x28], eax
mov eax, dword [esp + 0x14]
mov ecx, edi
xor edi, edi
cmp ecx, esi
jae 0x40af67
movzx edx, word [eax + ecx*4]
cmp dx, 0xffff
je 0x40af98
mov ebp, dword [esp]
movzx edi, word [eax + ecx*4 + 2]
inc dword [esp + 0x10]
mov dword [esp], edx
mov word [eax + ecx*4], bp
mov word [eax + ecx*4 + 2], bx
inc ecx
mov ebx, edi
mov edi, ecx
jmp 0x40af67
mov edx, dword [esp]
cmp dword [esp + 0x10], 0x80
mov word [eax + ecx*4], dx
mov word [eax + ecx*4 + 2], bx
mov cl, byte [esp + 0x1c]
setb al
not cl
test cl, al
mov ecx, dword [esp + 4]
jne 0x40afd1
mov eax, dword [ecx + 4]
or eax, dword [ecx]
jne 0x40afd1
mov dword [ecx + 4], 0
mov dword [ecx], 1
add esp, 0x7c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 4]
mov esi, dword [esp + 0x90]
mov edx, dword [esp + 8]
mov ebx, dword [esp + 0x40]
mov ecx, eax
add eax, 0x2c
movsd xmm0, qword [esi]
movsd xmm1, qword [esi + 8]
lea edi, [edx + ebx]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x10]
mov dword [esp], edi
movsd qword [esp + 0x28], xmm1
movsd qword [esp + 0x20], xmm0
mov dword [esp + 0x30], eax
cmp dword [edx + ebx], 0
je 0x40b098
mov esi, dword [ecx + 0x34]
mov edi, dword [edi + 8]
mov ebx, ecx
cmp esi, dword [ecx + 0x2c]
mov edx, esi
jne 0x40b03a
mov ecx, dword [esp + 0x14]
mov edx, esi
call fcn.0040ff97
mov edx, dword [ebx + 0x34]
mov eax, dword [ebx + 0x30]
lea ecx, [edx + edx*8]
inc edx
cmp edx, edi
mov dword [eax + ecx*4], 1
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], ebp
movsd xmm0, qword [esp + 0x20]
movsd xmm1, qword [esp + 0x28]
movsd qword [eax + ecx*4 + 0x10], xmm0
movsd qword [eax + ecx*4 + 0x18], xmm1
mov ebp, dword [esp + 0x30]
mov dword [eax + ecx*4 + 0x20], ebp
mov dword [ebx + 0x34], edx
jbe 0x40b141
xor edx, edx
lea ecx, [edi + edi*8]
inc edx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], esi
mov eax, dword [esp]
mov dword [eax], edx
jmp 0x40b0f9
mov esi, dword [ecx + 0x34]
mov ebx, ecx
cmp esi, dword [ecx + 0x2c]
mov eax, esi
jne 0x40b0b2
mov ecx, dword [esp + 0x14]
mov edx, esi
call fcn.0040ff97
mov eax, dword [ebx + 0x34]
mov ecx, dword [ebx + 0x30]
lea edx, [eax + eax*8]
xor edi, edi
inc eax
mov dword [ecx + edx*4], edi
mov dword [ecx + edx*4 + 4], ebp
mov dword [ecx + edx*4 + 8], edi
mov dword [ecx + edx*4 + 0xc], ebp
movsd xmm0, qword [esp + 0x20]
movsd xmm1, qword [esp + 0x28]
movsd qword [ecx + edx*4 + 0x10], xmm0
movsd qword [ecx + edx*4 + 0x18], xmm1
mov edi, dword [esp + 0x30]
mov dword [ecx + edx*4 + 0x20], edi
mov dword [ebx + 0x34], eax
mov eax, dword [esp]
mov dword [eax], 1
mov dword [eax + 4], esi
mov ecx, dword [esp + 0x18]
mov dword [eax + 8], esi
mov eax, dword [ecx]
test eax, eax
je 0x40afd1
add ecx, 0xc
push dword [esp + 0x34]
push dword [esp + 0x40]
push ecx
call dword [eax + 0xc]
add esp, 0x88
jmp 0x40afd4
mov edx, dword [esp]
mov ecx, ebp
push 0x50112c
call fcn.004e8970
mov ecx, edi
mov edx, esi
push 0x50113c
call fcn.004e8970
mov ecx, edi
push 0x50110c
call fcn.004e8970
mov edx, dword [esp + 0x90]
mov ecx, dword [edx]
lea eax, [edx + 0xc]
push dword [edx + 8]
push dword [edx + 4]
push eax
call dword [ecx + 0xc]
add esp, 0xc
mov eax, dword [ebp]
test eax, eax
je 0x40b1a9
mov ecx, ebp
mov edx, ebp
add ecx, 0xc
push dword [ebp + 8]
push dword [ebp + 4]
jmp 0x40b1a2
lea eax, [esp + 0x74]
mov ecx, dword [eax - 0xc]
push dword [eax - 4]
push dword [eax - 8]
push eax
call dword [ecx + 0xc]
add esp, 0xc
mov eax, dword [esp + 0x48]
test eax, eax
je 0x40b1a9
lea ecx, [esp + 0x54]
push dword [ecx - 4]
push dword [ecx - 8]
push ecx
call dword [eax + 0xc]
add esp, 0xc
lea eax, [esp + 0x20]
mov ecx, 0x525b3d
mov edx, 0x17
push 0x5011dc
push 0x4f4788
push eax
call fcn.004e8cc0