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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10c0
call fcn.10064ac0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 1
push 0x400
lea eax, [ebp - 0x1004]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0xc
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1004d2f0
add esp, 0x14
mov dword [ebp - 0x1050], eax
mov dword [ebp - 0x1044], 0
jmp 0x1004d53b
mov eax, dword [ebp - 0x1044]
add eax, 1
mov dword [ebp - 0x1044], eax
mov ecx, dword [ebp - 0x1044]
cmp ecx, dword [ebp - 0x1050]
jge 0x1004d774
mov edx, dword [ebp - 0x1044]
mov eax, dword [ebp + edx*4 - 0x1004]
mov dword [ebp - 0x1040], eax
mov ecx, dword [ebp - 0x1040]
cmp dword [ecx + 0xf8], 0
jne 0x1004d571
jmp 0x1004d52c
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1040]
cmp eax, dword [edx + 0x78]
jne 0x1004d581
jmp 0x1004d52c
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x40], 0
je 0x1004d58f
jmp 0x1004d774
mov edx, dword [ebp + 8]
cmp dword [edx + 0x78], 0
je 0x1004d5ca
mov eax, dword [ebp - 0x1040]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x100]
cmp edx, dword [ecx + 0x78]
jne 0x1004d5b1
jmp 0x1004d52c
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x78]
mov edx, dword [ecx + 0x100]
cmp edx, dword [ebp - 0x1040]
jne 0x1004d5ca
jmp 0x1004d52c
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x7c]
and ecx, 0x4000000
jne 0x1004d5ee
mov edx, dword [ebp - 0x1040]
mov eax, dword [edx + 0xb8]
and eax, 2
je 0x1004d5ee
jmp 0x1004d52c
mov ecx, dword [ebp - 0x1040]
push ecx
call fcn.1004d480
add esp, 4
mov dword [ebp - 0x104c], eax
mov edx, dword [ebp - 0x1040]
add edx, 0x10
mov dword [ebp - 0x1048], edx
mov eax, dword [ebp - 0x1040]
cmp dword [eax + 0xf8], 3
je 0x1004d62b
mov dword [ebp - 0x1048], 0x1009505c
mov ecx, dword [ebp - 0x1040]
mov edx, dword [ecx + 0xb8]
and edx, 4
je 0x1004d697
mov eax, dword [ebp - 0x1048]
push eax
mov ecx, dword [ebp - 0x1040]
add ecx, 4
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x7c]
push eax
mov ecx, dword [ebp - 0x104c]
push ecx
mov edx, dword [ebp + 8]
add edx, 0x2c
push edx
mov eax, dword [ebp + 8]
add eax, 0x20
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x3c]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x38]
push ecx
lea edx, [ebp - 0x10c0]
push edx
call fcn.100376b0
add esp, 0x24
mov ecx, 0xe
mov esi, eax
lea edi, [ebp - 0x103c]
rep movsd dword es:[edi], dword [esi]
jmp 0x1004d6f0
mov eax, dword [ebp - 0x1048]
push eax
mov ecx, dword [ebp - 0x1040]
add ecx, 4
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x7c]
push eax
mov ecx, dword [ebp - 0x104c]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1c]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x38]
push eax
lea ecx, [ebp - 0x1088]
push ecx
call fcn.100376b0
add esp, 0x24
mov ecx, 0xe
mov esi, eax
lea edi, [ebp - 0x103c]
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0x103c], 0
jne 0x1004d713
cmp dword [ebp - 0x1038], 0
jne 0x1004d713
mov edx, dword [ebp + 8]
movss xmm0, dword [edx + 0x48]
comiss xmm0, dword [ebp - 0x1034]
jbe 0x1004d75c
mov eax, dword [ebp - 0x1040]
mov dword [ebp - 0x1008], eax
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x44], 0
je 0x1004d747
mov edi, dword [ebp + 8]
add edi, 0x40
mov ecx, 0xe
lea esi, [ebp - 0x103c]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 8]
mov dword [edx + 0x44], 1
jmp 0x1004d75a
mov edi, dword [ebp + 8]
add edi, 0x40
mov ecx, 0xe
lea esi, [ebp - 0x103c]
rep movsd dword es:[edi], dword [esi]
jmp 0x1004d76f
cmp dword [ebp - 0x1038], 0
je 0x1004d76f
mov eax, dword [ebp + 8]
mov dword [eax + 0x44], 1
jmp 0x1004d52c
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b585
mov esp, ebp
pop ebp
ret