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

Disassembly:
sub esp, 0xc
mov edx, dword [esp + 0x18]
push ebx
mov ebx, dword [esp + 0x20]
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, dword [esp + 0x20]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
cmp dword [edi + 0x74], 0
mov ebp, dword [edi]
je 0x5073ae
mov eax, dword [edi + 0x18]
mov ecx, esi
sub ecx, dword [edi + 8]
sar ecx, 1
cmp byte [ecx + eax], 0
je 0x5073ae
mov eax, dword [edi + 0x1c]
push ebx
push edx
push esi
push edi
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], eax
call fcn.0050ab90
mov edx, dword [esp + 0x38]
add esp, 0x10
cmp esi, edx
jae 0x507a02
mov ecx, 0x81
nop dword [eax + eax]
movzx eax, word [esi]
mov dword [esp + 0x24], eax
movzx eax, ax
dec eax
cmp eax, 0xa5
ja case.0x5073dd.98
movzx eax, byte [eax + 0x507ab4]
jmp dword [eax*4 + 0x507a5c]
mov eax, dword [ebx + 8]
lea ecx, [ebx + 0xc]
test eax, eax
lea edx, [eax + 4]
cmove edx, ecx
lea eax, [esi + 2]
push edx
push eax
movzx eax, word [esi]
push eax
push edi
call fcn.00509ec0
mov edx, dword [esp + 0x38]
add esp, 0x10
mov esi, eax
jmp 0x5079f1
mov ecx, dword [ebx + 8]
lea edx, [ebx + 0xc]
test ecx, ecx
push 1
lea eax, [ecx + 4]
cmove eax, edx
push eax
lea eax, [esi + 2]
push eax
movzx eax, word [esi]
push eax
push edi
call fcn.00504380
mov edx, dword [esp + 0x3c]
add esp, 0x14
mov esi, eax
jmp 0x5079f1
mov eax, dword [ebp]
test eax, eax
je 0x507447
xor ecx, ecx
jmp 0x507457
push 0x14
push ebp
call fcn.00510f30
mov ecx, eax
add esp, 8
mov eax, dword [ebp]
test eax, eax
jne case.0x5073dd.98
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], eax
mov eax, dword [ebx + 8]
mov dword [ecx], eax
mov dword [ecx + 0x10], esi
mov dword [ebx + 8], ecx
push dword [edi + 0x24]
push 0x8d
push 0
push 3
push 0x20
push ebp
call fcn.0051a810
push 1
push edi
call fcn.004fdb40
push 0
push 2
push dword [edi + 0x24]
push 0x8d
push 0x20
push ebp
call fcn.0051a810
push 0
push 3
push 0
push 0x8b
push 0x20
push ebp
call fcn.0051a810
mov edx, dword [esp + 0x78]
add esp, 0x50
add esi, 2
jmp 0x5079f1
cmp dword [edi + 0x60], 1
jne case.0x5073dd.6
mov eax, dword [ebx + 8]
lea ecx, [ebx + 0xc]
test eax, eax
lea edx, [eax + 4]
cmove edx, ecx
push edx
push dword [esp + 0x2c]
push esi
push edi
call fcn.00505050
mov edx, dword [esp + 0x38]
add esp, 0x10
mov esi, eax
jmp 0x5079f1
mov ax, word [esi + 0x22]
sub ax, 0x62
cmp ax, 0xb
ja case.0x5073dd.6
push ebx
push esi
push edi
call fcn.00506190
mov edx, dword [esp + 0x34]
add esp, 0xc
mov esi, eax
jmp 0x5079f1
lea eax, [esi + 2]
mov dword [esp + 0x20], eax
movzx eax, word [eax]
mov ax, word [esi + eax*2]
sub ax, 0x62
cmp ax, 0xb
jbe case.0x5073dd.33
mov ecx, dword [ebx + 8]
lea edx, [ebx + 0xc]
test ecx, ecx
push 1
lea eax, [ecx + 4]
cmove eax, edx
push eax
push dword [esp + 0x28]
mov eax, dword [esp + 0x30]
push eax
push edi
call fcn.00504380
mov edx, dword [esp + 0x3c]
add esp, 0x14
mov esi, eax
jmp 0x5079f1
lea eax, [esi + 4]
mov dword [esp + 0x20], eax
mov ax, word [eax]
sub ax, 0x62
cmp ax, 0xb
ja 0x50758f
push ebx
push esi
push edi
call fcn.00508c50
mov edx, dword [esp + 0x34]
add esp, 0xc
mov esi, eax
jmp 0x5079f1
mov ecx, dword [ebx + 8]
lea edx, [ebx + 0xc]
push 0
test ecx, ecx
push 1
lea eax, [ecx + 4]
cmove eax, edx
push eax
push esi
push edi
call fcn.005094b0
mov esi, dword [esp + 0x34]
add esp, 0x14
mov edx, dword [esp + 0x28]
jmp 0x5079f1
lea eax, [esi + 6]
mov dword [esp + 0x20], eax
mov ax, word [eax]
sub ax, 0x62
cmp ax, 0xb
ja 0x5075e3
push ebx
push esi
push edi
call fcn.00508c50
mov edx, dword [esp + 0x34]
add esp, 0xc
mov esi, eax
jmp 0x5079f1
mov eax, dword [ebx + 8]
lea ecx, [ebx + 0xc]
test eax, eax
lea edx, [eax + 4]
cmove edx, ecx
push edx
push esi
push edi
call fcn.00505760
mov edx, dword [ebx + 8]
lea eax, [ebx + 0xc]
push 0
test edx, edx
push 1
lea ecx, [edx + 4]
cmove ecx, eax
push ecx
push esi
push edi
call fcn.005094b0
mov esi, dword [esp + 0x40]
add esp, 0x20
mov edx, dword [esp + 0x28]
jmp 0x5079f1
push ebx
push esi
push edi
call fcn.00508910
mov edx, dword [esp + 0x34]
add esp, 0xc
mov esi, eax
jmp 0x5079f1
push ebx
push esi
push edi
call fcn.00503fb0
mov edx, dword [esp + 0x34]
add esp, 0xc
mov esi, eax
jmp 0x5079f1
mov eax, dword [ebp]
test eax, eax
je 0x50765a
xor ecx, ecx
jmp 0x50766a
push 0x24
push ebp
call fcn.00510f30
mov ecx, eax
add esp, 8
mov eax, dword [ebp]
test eax, eax
jne case.0x5073dd.98
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
push 0
movups xmmword [ecx + 0x10], xmm0
mov dword [ecx + 0x20], eax
mov eax, dword [ebx + 8]
push ecx
mov dword [ecx], eax
push esi
mov dword [ecx + 0x10], esi
push edi
mov dword [ebx + 8], ecx
call fcn.004ff970
mov edx, dword [esp + 0x38]
add esp, 0x10
mov esi, eax
jmp 0x5079f1
mov eax, dword [ebp]
test eax, eax
je 0x5076ad
xor ecx, ecx
jmp 0x5076bd
push 0x18
push ebp
call fcn.00510f30
mov ecx, eax
add esp, 8
mov eax, dword [ebp]
mov dword [esp + 0x20], ecx
test eax, eax
jne case.0x5073dd.98
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
movq qword [ecx + 0x10], xmm0
mov eax, dword [ebx + 8]
mov dword [ecx], eax
mov dword [ecx + 0x10], esi
mov dword [ebx + 8], ecx
lea ecx, [esi + 2]
movzx eax, word [ecx + 2]
lea ecx, [ecx + eax*2]
movzx eax, word [ecx]
cmp eax, 0x78
je 0x5076e2
lea esi, [ecx + 4]
cmp eax, 0x7b
je 0x507708
push 1
push edi
call fcn.004fdb40
add esp, 8
xor eax, eax
jmp 0x50772b
push 2
push edi
call fcn.004fdb40
push 0
push 0x40
push 0
push 0x8b
push 0x20
push ebp
call fcn.0051a810
add esp, 0x20
mov eax, 4
push 0
push 2
push eax
push 0x8b
push 0x20
push ebp
call fcn.0051a810
push ebp
call fcn.0051a7a0
mov ecx, dword [esp + 0x3c]
push edi
mov dword [ecx + 0x14], eax
call fcn.0050d290
mov edx, dword [esp + 0x48]
add esp, 0x20
jmp 0x5079f1
cmp word [esi + 2], cx
jbe case.0x5073dd.126
push ebx
push esi
push edi
call fcn.00502170
mov edx, dword [esp + 0x34]
add esp, 0xc
mov esi, eax
jmp 0x5079f1
push ebx
push esi
push edi
call fcn.00503550
mov edx, dword [esp + 0x34]
add esp, 0xc
mov esi, eax
jmp 0x5079f1
mov eax, dword [ebp]
test eax, eax
je 0x50779d
xor ecx, ecx
jmp 0x5077ad
push 0x14
push ebp
call fcn.00510f30
mov ecx, eax
add esp, 8
mov eax, dword [ebp]
test eax, eax
jne case.0x5073dd.98
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], eax
mov eax, dword [ebx + 8]
mov dword [ecx], eax
mov dword [ecx + 0x10], esi
mov dword [ebx + 8], ecx
push dword [edi + 0x40]
push 0x8d
push 0
push 3
push 0x20
push ebp
call fcn.0051a810
xor eax, eax
cmp dword [edi + 0x70], eax
setne al
lea eax, [eax*4 + 1]
push eax
push edi
call fcn.004fdb40
push 0
push 8
push 0
push 1
push 0x20
push ebp
call fcn.0051a810
mov eax, dword [edi + 0x70]
neg eax
push 0
push 3
sbb eax, eax
and eax, 0x10
push eax
push 0x8b
push 0x20
push ebp
call fcn.0051a810
add esp, 0x50
lea eax, [esi + 4]
push eax
push 0x40
push 0
push 3
push 0x20
push ebp
call fcn.0051a810
push 0
push 3
push dword [edi + 0x40]
push 0x8d
push 0x20
push ebp
call fcn.0051a810
push 0
push 3
push 0x18
push 0x81
push 0x20
push ebp
call fcn.0051a810
add esp, 0x48
cmp dword [edi + 0x70], 0
je 0x5078e4
push dword [edi + 0x44]
push 0x8d
push 0
push 1
push 0x20
push ebp
call fcn.0051a810
push 0
push 0xb
push dword [edi + 0x44]
push 0x8d
push 0x20
push ebp
call fcn.0051a810
push 0
push 0x40
push 4
push 0x8b
push 0x20
push ebp
call fcn.0051a810
add esp, 0x48
lea eax, [esi + 4]
push eax
push 0x40
push 8
push 0x8b
push 0x20
push ebp
call fcn.0051a810
push 0
push 2
push 0xc
push 0x8b
push 0x20
push ebp
call fcn.0051a810
push 0
push 1
push 0
push 0x8b
push 0x20
push ebp
call fcn.0051a810
add esp, 0x48
movzx eax, word [esi + 2]
mov edx, dword [esp + 0x28]
lea esi, [esi + eax*2]
add esi, 6
jmp 0x5079f1
push ebx
push esi
push edi
call fcn.005055d0
mov edx, dword [esp + 0x34]
add esp, 0xc
mov esi, eax
jmp 0x5079f1
push ebx
push esi
push edi
call fcn.005058f0
mov edx, dword [esp + 0x34]
add esp, 0xc
mov esi, eax
jmp 0x5079f1
cmp dword [edi + 0xd0], 0
movzx edx, word [esi + 2]
mov eax, dword [edi + 0x14]
mov ecx, dword [edi]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], edx
mov al, byte [edx + eax]
mov byte [esp + 0x20], al
jne 0x5079d2
test al, al
jne 0x507975
cmp dword [ecx], 0
mov eax, dword [edi + 0x20]
lea eax, [eax + edx*4]
jne 0x507975
add eax, dword [ecx + 0x58]
push eax
push 0x8d
push 0
push 1
push ecx
call fcn.0050f720
mov ecx, dword [esp + 0x38]
add esp, 0x14
mov edx, dword [esp + 0x18]
lea eax, [edx*8]
mov edx, dword [edi + 0x24]
add edx, eax
mov dword [esp + 0x18], eax
cmp dword [ecx], 0
jne 0x5079a9
mov eax, dword [ecx + 0x58]
add edx, 4
push 0
push 2
add eax, edx
push eax
push 0x8d
push ecx
call fcn.0050f720
mov ecx, dword [esp + 0x38]
add esp, 0x14
cmp byte [esp + 0x20], 0
jne 0x5079d2
mov eax, dword [edi + 0x24]
add eax, dword [esp + 0x18]
cmp dword [ecx], 0
jne 0x5079d2
add eax, dword [ecx + 0x58]
push 0
push 1
push eax
push 0x8d
push ecx
call fcn.0050f720
add esp, 0x14
mov edx, dword [esp + 0x28]
add esi, 4
jmp 0x5079f1
lea ecx, [esi + 2]
nop
movzx eax, word [ecx + 2]
cmp word [ecx + eax*2], 0x78
lea ecx, [ecx + eax*2]
je 0x5079e0
lea esi, [ecx + 4]
test esi, esi
je case.0x5073dd.98
mov ecx, 0x81
cmp esi, edx
jb 0x5073c0
cmp dword [esp + 0x10], 0
je case.0x5073dd.98
mov eax, dword [ebp]
test eax, eax
je 0x507a14
xor ecx, ecx
jmp 0x507a24
push 0x24
push ebp
call fcn.00510f30
mov ecx, eax
add esp, 8
mov eax, dword [ebp]
test eax, eax
jne case.0x5073dd.98
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
movups xmmword [ecx + 0x10], xmm0
mov dword [ecx + 0x20], eax
mov eax, dword [ebx + 8]
mov dword [ecx], eax
mov dword [ebx + 8], ecx
mov dword [ecx + 0x10], 0x88704c
mov eax, dword [edi + 0x1c]
mov dword [ecx + 0x14], eax
mov eax, dword [esp + 0x14]
mov dword [edi + 0x1c], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret