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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x8d3d42
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp + 0x10]
mov edx, dword [0x9bb1c8]
cmp edx, eax
jg 0x50a81e
mov eax, dword [ebp + 0x10]
add edx, 0x40
cmp edx, eax
jle 0x50a80e
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x34], 0
lea edx, [eax - 0x200]
mov dword [ebp - 0x18], edx
push 0xd0
call fcn.005caba4
mov dword [ebp - 0x14], eax
add esp, 4
mov dword [ebp - 0x30], eax
test eax, eax
je 0x50a972
mov dword [ebp - 0x34], 1
mov dword [ebp - 4], 0
push dword [0xaca344]
mov ebx, dword [ebp + 0x10]
lea ebx, [ebx + ebx*4 - 0xa00]
add ebx, ebx
mov ecx, eax
add ebx, ebx
sub ebx, dword [ebp - 0x18]
add ebx, ebx
add ebx, ebx
add ebx, ebx
add ebx, dword [0xa72ccc]
call fcn.008193cc
mov edx, dword [ebp - 0x14]
mov edi, dword [ebp + 8]
mov dword [edx], 0xaff308
mov ecx, dword [0x9ba90c]
mov dword [edx + 0x44], 0x3f800000
mov dword [edx + 4], ecx
xor eax, eax
mov dword [edx + 0x48], 0x3f800000
mov esi, 0x3f800000
mov dword [edx + 0x50], eax
mov dword [edx + 0x1c], 0
mov ecx, 0x3f800000
mov dword [edx + 0x54], eax
mov dword [edx + 0x24], 0x3f800000
mov dword [edx + 0x58], eax
mov dword [edx + 0x4c], eax
mov dword [edx + 0x20], eax
mov dword [edx + 0x28], ebx
mov ebx, dword [edi]
mov dword [edx + 0x6c], ebx
mov ebx, dword [edi + 4]
mov dword [edx + 0x70], ebx
mov ebx, dword [edi + 8]
mov dword [edx + 0x74], ebx
movzx ebx, word [ebp + 0x18]
mov word [edx + 0x2c], bx
mov ebx, 0xffff
mov word [edx + 0x2e], ax
mov word [edx + 0x30], bx
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebx]
mov dword [edx + 0x78], edi
mov edi, dword [ebx + 8]
mov dword [edx + 0x80], edi
mov ebx, dword [ebx + 4]
mov dword [edx + 0x7c], ebx
mov dword [edx + 0x34], eax
mov dword [edx + 0x38], eax
mov dword [edx + 0x3c], eax
mov dword [edx + 0x40], eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x50a7b6
mov eax, edx
mov dword [eax + 0x5c], eax
jmp 0x50a7e8
movzx eax, word [ebp + 0x18]
test eax, 0x800
je 0x50a7e0
movzx eax, word [ebp + 0x18]
test eax, 0x4000
je 0x50a7d6
mov eax, dword [0xaca328]
mov dword [edx + 0x5c], eax
jmp 0x50a7e8
mov eax, dword [0xaca344]
mov dword [edx + 0x5c], eax
jmp 0x50a7e8
mov eax, dword [0xaca344]
mov dword [edx + 0x5c], eax
mov eax, edx
mov dword [ebp - 0x34], 0
mov dword [eax + 0x64], ecx
mov dword [eax + 0x68], esi
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x2c], 0
push 0xd0
call fcn.005caba4
mov dword [ebp - 0x18], eax
add esp, 4
mov dword [ebp - 0x28], eax
test eax, eax
je 0x50a97c
mov dword [ebp - 0x2c], 1
mov dword [ebp - 4], 1
push dword [0xaca344]
mov eax, dword [ebp + 0x10]
lea ebx, [eax + eax*4]
add ebx, ebx
mov ecx, dword [ebp - 0x18]
add ebx, ebx
sub ebx, eax
add ebx, ebx
add ebx, ebx
add ebx, ebx
add ebx, dword [0xa72cd0]
call fcn.008193cc
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp + 8]
mov dword [edx], 0xaff308
mov ecx, dword [0x9ba90c]
mov dword [edx + 0x44], 0x3f800000
mov dword [edx + 4], ecx
xor eax, eax
mov dword [edx + 0x48], 0x3f800000
mov esi, 0x3f800000
mov dword [edx + 0x50], eax
mov dword [edx + 0x1c], 0
mov ecx, 0x3f800000
mov dword [edx + 0x54], eax
mov dword [edx + 0x24], 0x3f800000
mov dword [edx + 0x58], eax
mov dword [edx + 0x4c], eax
mov dword [edx + 0x20], eax
mov dword [edx + 0x28], ebx
mov ebx, dword [edi]
mov dword [edx + 0x6c], ebx
mov ebx, dword [edi + 4]
mov dword [edx + 0x70], ebx
mov ebx, dword [edi + 8]
mov dword [edx + 0x74], ebx
movzx ebx, word [ebp + 0x18]
mov word [edx + 0x2c], bx
mov ebx, 0xffff
mov word [edx + 0x2e], ax
mov word [edx + 0x30], bx
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebx]
mov dword [edx + 0x78], edi
mov edi, dword [ebx + 8]
mov dword [edx + 0x80], edi
mov ebx, dword [ebx + 4]
mov dword [edx + 0x7c], ebx
mov dword [edx + 0x34], eax
mov dword [edx + 0x38], eax
mov dword [edx + 0x3c], eax
mov dword [edx + 0x40], eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x50a91a
mov eax, edx
mov dword [eax + 0x5c], eax
jmp 0x50a94c
movzx eax, word [ebp + 0x18]
test eax, 0x800
je 0x50a944
movzx eax, word [ebp + 0x18]
test eax, 0x4000
je 0x50a93a
mov eax, dword [0xaca328]
mov dword [edx + 0x5c], eax
jmp 0x50a94c
mov eax, dword [0xaca344]
mov dword [edx + 0x5c], eax
jmp 0x50a94c
mov eax, dword [0xaca344]
mov dword [edx + 0x5c], eax
mov eax, edx
mov dword [ebp - 0x2c], 0
mov dword [eax + 0x64], ecx
mov dword [eax + 0x68], esi
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 0x14], eax
jmp 0x50a7f7
xor eax, eax
mov dword [ebp - 0x18], eax
jmp 0x50a95b