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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x108
mov ebx, dword [ebp + 8]
cmp dword [edx + 0xc], 0
mov esi, edx
mov dword [esp + 0x4c], ecx
je 0x1004f54c
mov eax, dword [esp + 0x4c]
movsd xmm1, qword [esi + 0x30]
movsd xmm2, qword [esi + 0x18]
movsd xmm0, qword [esi + 0x38]
movsd xmm3, qword [esi + 0x20]
lea edi, [esp + 0xb8]
mov ecx, 0x12
movsd qword [eax + 0x10], xmm1
movsd xmm1, qword [esi + 0x28]
movsd qword [esp + 0xb0], xmm2
movsd xmm2, qword [esi]
movsd qword [eax + 0x18], xmm0
movsd qword [eax], xmm3
movsd qword [eax + 8], xmm1
movsd xmm1, qword [esi + 0x10]
movsd qword [esp + 0x98], xmm2
add eax, 0x20
movsd qword [esp + 0xa8], xmm1
movsd xmm1, qword [esi + 8]
mov esi, ebx
movsd qword [esp + 0xa0], xmm1
rep movsd dword es:[edi], dword [esi]
lea esi, [esp + 0x98]
mov ecx, 0x1a
mov edi, eax
rep movsd dword es:[edi], dword [esi]
jmp 0x1004fa54
mov eax, dword [ebx]
mov edx, dword [esi + 0x20]
cmp byte [ebx + 0x38], 0
mov edi, dword [esi + 0x1c]
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x24], edx
mov edx, dword [esi + 0x28]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x28], edx
je 0x1004f5ae
mov edx, dword [esi + 0x18]
mov ebx, dword [esi + 0x24]
mov ecx, dword [esi + 0x14]
test eax, eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ebx
je 0x1004f825
mov edx, dword [esp + 0x24]
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x14]
mov esi, 1
mov dword [esp + 0x28], eax
jmp 0x1004fa03
mov edx, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x18]
mov dword [esp + 0x1c], edi
mov edi, dword [ebx + 0x24]
mov dword [esp + 0x40], edx
mov edx, dword [ebx + 0x34]
mov dword [esp + 0x54], ecx
mov ecx, dword [ebx + 0x44]
mov dword [esp + 0xc], edx
mov edx, dword [ebx + 0x30]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x2c], edx
mov edx, dword [ebx + 0xc]
mov dword [esp + 0x10], edx
mov edx, dword [ebx + 8]
mov dword [esp + 8], edx
mov edx, dword [ebx + 0x14]
mov dword [esp + 0x44], edx
mov edx, dword [ebx + 0x10]
mov dword [esp + 0x3c], edx
mov edx, dword [esi + 0x14]
mov dword [esp + 4], edx
mov edx, dword [esi + 0x18]
mov dword [esp + 0x14], edx
mov edx, dword [esi + 0x24]
mov dword [esp + 0x18], edx
mov edx, dword [esi + 0x2c]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x24]
test eax, eax
jne 0x1004faac
mov eax, dword [esp + 4]
test eax, eax
jne 0x1004fab5
mov eax, dword [esp + 0x14]
cmp eax, 2
jne 0x1004fa74
mov edx, dword [esp + 0x40]
cmp edx, edi
je 0x1004f9f4
add edi, 0xffffffe0
jmp 0x1004f65b
cmp edi, edx
lea edi, [edi - 0x20]
je 0x1004f9ee
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0xc]
cmp eax, dword [edi + 0x10]
sbb ecx, dword [edi + 0x14]
jae 0x1004f9e2
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
cmp eax, dword [edi + 8]
sbb ecx, dword [edi + 0xc]
jae 0x1004f650
mov ebx, dword [esp + 0x3c]
mov eax, dword [edi + 4]
cmp dword [edi], ebx
sbb eax, dword [esp + 0x44]
jae 0x1004f650
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0x54]
mov dword [eax + 0x24], edi
mov eax, dword [edi + 0x18]
mov ecx, dword [edx + 0x10]
cmp eax, ecx
jae 0x1004fabe
imul ebx, eax, 0x150
add ebx, dword [edx + 0xc]
mov edx, ebx
lea ecx, [esp + 0x98]
push dword [esp + 0x48]
call fcn.1004bca0
add esp, 4
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x48]
cmp dword [esp + 0x98], 0
mov dword [esp + 0x90], ebx
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], eax
mov dword [esp + 0x94], ecx
je 0x1004f719
xor ebx, ebx
lea edx, [esp + 0x88]
lea eax, [esp + 0xa0]
lea ecx, [esp + 0x58]
push eax
call fcn.1004c110
mov edx, dword [esp + 0x38]
add esp, 4
jmp 0x1004f787
lea eax, [esp + 0xa0]
mov dword [esp + 0x50], ebx
mov ebx, ecx
movsd xmm0, qword [eax + 0x20]
lea eax, [esp + 0x68]
movsd qword [eax + 0x18], xmm0
lea eax, [esp + 0xa0]
movsd xmm0, qword [eax + 0x18]
lea eax, [esp + 0x68]
movsd qword [eax + 0x10], xmm0
lea eax, [esp + 0xa0]
movsd xmm0, qword [eax + 8]
movsd xmm1, qword [eax + 0x10]
lea eax, [esp + 0x68]
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
lea eax, [esp + 0xa0]
mov eax, dword [eax + 4]
mov dword [esp + 0x60], eax
lea eax, [esp + 0xa0]
movsd xmm0, qword [eax - 4]
movsd qword [esp + 0x58], xmm0
mov dword [esp + 0x34], edx
mov dword [esi], edx
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
movsd xmm0, qword [esp + 0x78]
test ebx, ebx
mov dword [esi + 4], edx
mov edx, dword [esp + 0x50]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x60]
mov dword [esi + 8], edx
mov edx, dword [esp + 4]
mov dword [esp + 0x14], ecx
mov dword [esi + 0xc], ebx
mov ecx, dword [esp + 0x64]
mov dword [esi + 0x10], eax
mov ebx, dword [ebp + 8]
mov dword [esi + 0x14], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x1c], ecx
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], ecx
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov dword [esi + 0x20], edx
mov dword [esp + 0x18], ecx
mov dword [esi + 0x24], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x28], ecx
mov dword [esi + 0x28], ecx
mov ecx, dword [esp + 0x74]
mov dword [esi + 0x2c], ecx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x84]
movsd qword [esi + 0x30], xmm0
mov dword [esi + 0x3c], ecx
mov ecx, dword [esp + 0x80]
mov dword [esi + 0x38], ecx
je 0x1004f614
jmp 0x1004f4c2
mov eax, dword [esi + 0x2c]
mov edx, dword [esp + 0x24]
test ecx, ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], eax
je 0x1004fa5c
mov eax, ecx
mov dword [esp + 0x98], 4
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 4], eax
mov dword [esp + 8], 0
mov ebx, dword [eax + 0xc]
test ebx, ebx
je 0x1004f99f
mov eax, dword [esp + 4]
mov dword [esp + 8], 0
mov dword [esp + 0x30], esi
mov edx, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
mov dword [esp + 0x40], edx
mov edx, 4
mov dword [esp + 0x10], ecx
mov dword [esp + 0x3c], eax
mov edi, ebx
xor ecx, ecx
mov dword [esp + 0x44], ebx
jmp 0x1004f8c2
mov ecx, dword [esp + 0xc]
mov ebx, edi
mov edx, eax
mov edi, ebx
sub edi, ecx
jbe 0x1004f99f
mov eax, edx
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 8]
shr edi, 1
mov dword [esp + 0x2c], ebx
mov dword [esp + 0xc], ecx
add edi, ecx
lea ebx, [edi + edi*2]
cmp dword [esi + ebx*8 + 0x10], edx
ja 0x1004f8b0
mov edx, eax
jb 0x1004f90f
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x34]
lea esi, [ecx + ebx*8]
mov ecx, dword [esp + 0x38]
cmp eax, dword [esi]
sbb ecx, dword [esi + 4]
jae 0x1004f903
mov ecx, dword [esp + 0xc]
mov ebx, edi
jmp 0x1004f8b8
cmp eax, dword [esi + 8]
mov ecx, dword [esp + 0x38]
sbb ecx, dword [esi + 0xc]
jb 0x1004f918
mov ebx, dword [esp + 0x2c]
inc edi
mov ecx, edi
jmp 0x1004f8b8
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + ebx*8 + 0x14]
cmp ecx, dword [esp + 0x3c]
mov eax, ecx
mov dword [esp + 0xc], ecx
jae 0x1004fad3
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0x44]
cmp eax, dword [esp + 0x9c]
jne 0x1004f963
mov edx, dword [esp + 8]
lea ecx, [esp + 0x98]
call fcn.1003eee0
mov edx, dword [esp + 0x98]
mov eax, dword [esp + 0xa0]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x40]
inc edi
lea eax, [eax + eax*4]
lea eax, [ecx + eax*8]
mov ecx, dword [esp + 8]
mov dword [edx + ecx*4], eax
inc ecx
sub ebx, edi
lea eax, [edi + edi*2]
mov edi, edx
mov edx, dword [esp + 0x10]
mov dword [esp + 8], ecx
mov dword [esp + 0xa0], ecx
lea edx, [edx + eax*8]
mov dword [esp + 0x10], edx
mov edx, edi
jne 0x1004f89f
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0x98]
xor esi, esi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 8]
lea eax, [ecx + eax*4]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x44]
mov edx, dword [eax + 0x40]
mov eax, dword [edi]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
add eax, 8
mov dword [esp + 8], eax
mov eax, dword [esp + 0x14]
jmp 0x1004fa03
mov eax, dword [ebp + 8]
mov dword [eax + 0x24], edi
mov byte [eax + 0x38], 1
jmp 0x1004f9f4
mov eax, dword [ebp + 8]
mov dword [eax + 0x24], edx
mov dword [esp + 4], 0
mov eax, 3
xor esi, esi
mov ebx, dword [esp + 0x4c]
mov dword [ebx], esi
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov edx, dword [esp + 0x18]
mov dword [ebx + 0xc], edi
mov esi, dword [esp + 0x28]
mov dword [ebx + 0x10], edx
mov edx, dword [esp + 0x20]
mov dword [ebx + 0x14], esi
mov esi, dword [esp + 0xc]
mov dword [ebx + 0x18], edx
mov edx, dword [esp + 8]
mov dword [ebx + 0x1c], esi
mov esi, dword [esp + 4]
mov dword [ebx + 0x20], edx
mov edx, dword [esp + 0x10]
mov dword [ebx + 0x24], esi
mov dword [ebx + 0x28], ecx
mov dword [ebx + 0x2c], edx
mov dword [ebx + 0x30], ecx
mov ecx, dword [esp + 0x2c]
mov dword [ebx + 0x34], ecx
mov byte [ebx + 0x78], 2
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0x14]
cmp eax, 2
jne 0x1004fa74
mov dword [esp + 4], 0
mov eax, 3
jmp 0x1004fa01
mov ecx, eax
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
mov dword [esp + 4], 0
xor esi, esi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], edx
mov edx, ecx
mov dword [esp + 0x28], eax
mov eax, 4
jmp 0x1004fa03
mov edi, dword [esp + 0x1c]
jmp 0x1004f594
mov dword [esp + 0x24], edx
jmp 0x1004f83e
mov dword [esp + 0x30], esi
push 0x100db200
push ecx
push eax
call fcn.100b0f30
add esp, 0xc
jmp 0x1004fae8
push 0x100db24c
push dword [esp + 0x40]
push dword [esp + 0x14]
call fcn.100b0f30
add esp, 0xc
ud2