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

Disassembly:
sub esp, 0x24
mov edx, dword [esp + 0x30]
push ebx
mov ebx, dword [esp + 0x38]
push ebp
push esi
mov esi, dword [esp + 0x38]
push edi
mov edi, dword [esp + 0x38]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
cmp dword [edi + 0x7c], 0
mov ebp, dword [edi]
je 0x506e0e
mov eax, dword [edi + 0x18]
mov ecx, esi
sub ecx, dword [edi + 8]
sar ecx, 1
cmp byte [ecx + eax], 0
je 0x506e0e
mov eax, dword [edi + 0x1c]
push ebx
push edx
push esi
push edi
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], eax
call fcn.0050a910
mov edx, dword [esp + 0x50]
add esp, 0x10
cmp esi, edx
jae 0x5075bd
mov dword [esp + 0x20], 0xa1
mov dword [esp + 0x24], 0x9b
mov dword [esp + 0x28], 0x9d
mov dword [esp + 0x2c], 0x9f
movzx ecx, word [esi]
movzx eax, cx
dec eax
mov dword [esp + 0x14], ecx
cmp eax, 0xa5
ja case.0x506e53.98
movzx eax, byte [eax + 0x507670]
jmp dword [eax*4 + 0x507618]
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.00509bb0
mov edx, dword [esp + 0x50]
add esp, 0x10
mov esi, eax
jmp 0x5075b1
mov edx, dword [ebx + 8]
lea eax, [ebx + 0xc]
test edx, edx
push 1
lea ecx, [edx + 4]
cmove ecx, eax
lea eax, [esi + 2]
push ecx
push eax
movzx eax, word [esi]
push eax
push edi
call fcn.00503b90
mov edx, dword [esp + 0x54]
add esp, 0x14
mov esi, eax
jmp 0x5075b1
cmp dword [ebp], 0
je 0x506ebc
xor ecx, ecx
jmp 0x506ec9
push 0x14
push ebp
call fcn.00511ae0
add esp, 8
mov ecx, eax
cmp dword [ebp], 0
jne case.0x506e53.98
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
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.0051c640
push 1
push edi
call fcn.004fc250
push 0
push 2
push dword [edi + 0x24]
push 0x8d
push 0x20
push ebp
call fcn.0051c640
push 0
push 3
push 0
push 0x8b
push 0x20
push ebp
call fcn.0051c640
mov edx, dword [esp + 0x90]
add esp, 0x50
add esi, 2
jmp 0x5075b1
cmp dword [edi + 0x68], 1
mov edx, dword [ebx + 8]
lea eax, [edx + 4]
jne 0x506f6e
test edx, edx
lea edx, [ebx + 0xc]
cmove eax, edx
push eax
push dword [esp + 0x44]
push esi
push edi
call fcn.00504950
mov edx, dword [esp + 0x50]
add esp, 0x10
mov esi, eax
jmp 0x5075b1
test edx, edx
lea edx, [ebx + 0xc]
push 1
cmove eax, edx
push eax
lea eax, [esi + 2]
push eax
push ecx
push edi
call fcn.00503b90
mov edx, dword [esp + 0x54]
add esp, 0x14
mov esi, eax
jmp 0x5075b1
mov ax, word [esi + 0x22]
sub ax, 0x62
cmp ax, 0xb
ja case.0x506e53.6
push ebx
push esi
push edi
call fcn.00505a00
mov edx, dword [esp + 0x4c]
add esp, 0xc
mov esi, eax
jmp 0x5075b1
lea eax, [esi + 2]
mov dword [esp + 0x3c], eax
movzx eax, word [eax]
mov ax, word [esi + eax*2]
sub ax, 0x62
cmp ax, 0xb
jbe case.0x506e53.33
mov edx, dword [ebx + 8]
lea eax, [ebx + 0xc]
test edx, edx
push 1
lea ecx, [edx + 4]
cmove ecx, eax
mov eax, dword [esp + 0x18]
push ecx
push dword [esp + 0x44]
push eax
push edi
call fcn.00503b90
mov edx, dword [esp + 0x54]
add esp, 0x14
mov esi, eax
jmp 0x5075b1
lea eax, [esi + 4]
mov dword [esp + 0x3c], eax
mov ax, word [eax]
sub ax, 0x62
cmp ax, 0xb
ja 0x50702a
push ebx
push esi
push edi
call fcn.00508980
mov edx, dword [esp + 0x4c]
add esp, 0xc
mov esi, eax
jmp 0x5075b1
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.005091c0
mov esi, dword [esp + 0x50]
add esp, 0x14
mov edx, dword [esp + 0x40]
jmp 0x5075b1
lea eax, [esi + 6]
mov dword [esp + 0x3c], eax
mov ax, word [eax]
sub ax, 0x62
cmp ax, 0xb
ja 0x50707e
push ebx
push esi
push edi
call fcn.00508980
mov edx, dword [esp + 0x4c]
add esp, 0xc
mov esi, eax
jmp 0x5075b1
mov eax, dword [ebx + 8]
test eax, eax
je 0x50708a
add eax, 4
jmp 0x50708d
lea eax, [ebx + 0xc]
push eax
push esi
push edi
call fcn.00504ee0
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.005091c0
mov esi, dword [esp + 0x5c]
add esp, 0x20
mov edx, dword [esp + 0x40]
jmp 0x5075b1
push ebx
push esi
push edi
call fcn.00508640
mov edx, dword [esp + 0x4c]
add esp, 0xc
mov esi, eax
jmp 0x5075b1
push ebx
push esi
push edi
call fcn.00503860
mov edx, dword [esp + 0x4c]
add esp, 0xc
mov esi, eax
jmp 0x5075b1
cmp dword [ebp], 0
je 0x5070f5
xor ecx, ecx
jmp 0x507102
push 0x24
push ebp
call fcn.00511ae0
add esp, 8
mov ecx, eax
cmp dword [ebp], 0
jne case.0x506e53.98
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
push 0
movups xmmword [ecx + 0x10], xmm0
mov dword [ecx + 0x20], 0
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.004fde10
mov edx, dword [esp + 0x50]
add esp, 0x10
mov esi, eax
jmp 0x5075b1
cmp dword [ebp], 0
je 0x50714e
xor ecx, ecx
mov dword [esp + 0x3c], ecx
jmp 0x50715f
push 0x18
push ebp
call fcn.00511ae0
add esp, 8
mov dword [esp + 0x3c], eax
mov ecx, eax
cmp dword [ebp], 0
jne case.0x506e53.98
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
movq qword [ecx + 0x10], xmm0
mov eax, dword [ebx + 8]
mov dword [ecx + 0x10], esi
add esi, 2
mov dword [ecx], eax
mov dword [ebx + 8], ecx
movzx eax, word [esi + 2]
lea esi, [esi + eax*2]
movzx eax, word [esi]
cmp eax, 0x78
je 0x507182
add esi, 4
cmp eax, 0x7b
je 0x5071a8
push 1
push edi
call fcn.004fc250
add esp, 8
xor eax, eax
jmp 0x5071cb
push 2
push edi
call fcn.004fc250
push 0
push 0x40
push 0
push 0x8b
push 0x20
push ebp
call fcn.0051c640
add esp, 0x20
mov eax, 4
push 0
push 2
push eax
push 0x8b
push 0x20
push ebp
call fcn.0051c640
push ebp
call fcn.0051c410
mov ecx, dword [esp + 0x58]
push edi
mov dword [ecx + 0x14], eax
call fcn.0050d640
mov edx, dword [esp + 0x60]
add esp, 0x20
jmp 0x5075b1
mov eax, 0x81
cmp word [esi + 2], ax
jbe case.0x506e53.126
push ebx
push esi
push edi
call fcn.005012c0
mov edx, dword [esp + 0x4c]
add esp, 0xc
mov esi, eax
jmp 0x5075b1
push ebx
push esi
push edi
call fcn.005028c0
mov edx, dword [esp + 0x4c]
add esp, 0xc
mov esi, eax
jmp 0x5075b1
cmp dword [ebp], 0
je 0x507241
xor ecx, ecx
jmp 0x50724e
push 0x14
push ebp
call fcn.00511ae0
add esp, 8
mov ecx, eax
cmp dword [ebp], 0
jne case.0x506e53.98
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
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.0051c640
xor eax, eax
cmp dword [edi + 0x78], eax
setne al
lea eax, [eax*4 + 1]
push eax
push edi
call fcn.004fc250
push 0
push 8
push 0
push 1
push 0x20
push ebp
call fcn.0051c640
mov eax, dword [edi + 0x78]
neg eax
push 0
push 3
sbb eax, eax
and eax, 0x10
push eax
push 0x8b
push 0x20
push ebp
call fcn.0051c640
add esp, 0x50
lea eax, [esi + 4]
push eax
push 0x40
push 0
push 3
push 0x20
push ebp
call fcn.0051c640
push 0
push 3
push dword [edi + 0x40]
push 0x8d
push 0x20
push ebp
call fcn.0051c640
push 0
push 3
push 0x18
push 0x81
push 0x20
push ebp
call fcn.0051c640
add esp, 0x48
cmp dword [edi + 0x78], 0
je 0x507387
push dword [edi + 0x44]
push 0x8d
push 0
push 1
push 0x20
push ebp
call fcn.0051c640
push 0
push 0xb
push dword [edi + 0x44]
push 0x8d
push 0x20
push ebp
call fcn.0051c640
push 0
push 0x40
push 4
push 0x8b
push 0x20
push ebp
call fcn.0051c640
add esp, 0x48
lea eax, [esi + 4]
push eax
push 0x40
push 8
push 0x8b
push 0x20
push ebp
call fcn.0051c640
push 0
push 2
push 0xc
push 0x8b
push 0x20
push ebp
call fcn.0051c640
push 0
push 1
push 0
push 0x8b
push 0x20
push ebp
call fcn.0051c640
add esp, 0x48
movzx eax, word [esi + 2]
mov edx, dword [esp + 0x40]
lea esi, [esi + eax*2]
add esi, 6
jmp 0x5075b1
mov edx, dword [edi]
lea eax, [esi + 2]
movzx ecx, cx
mov dword [esp + 0x14], edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x3c], eax
cmp cx, word [esp + 0x20]
je 0x5073ca
cmp cx, word [esp + 0x24]
je 0x5073ca
cmp cx, word [esp + 0x28]
je 0x5073ca
cmp cx, word [esp + 0x2c]
jne 0x5073df
mov ebx, dword [esp + 0x3c]
movzx eax, word [eax]
lea ebx, [ebx + eax*2]
add ebx, 4
mov dword [esp + 0x3c], ebx
mov ebx, dword [esp + 0x44]
cmp dword [edx], 0
je 0x5073e8
xor eax, eax
jmp 0x5073fb
push 0x14
push edx
call fcn.00511ae0
mov edx, dword [esp + 0x1c]
add esp, 8
mov ecx, dword [esp + 0x30]
cmp dword [edx], 0
mov dword [esp + 0x10], eax
je 0x50740f
mov edx, dword [esp + 0x40]
xor esi, esi
jmp 0x5075b1
mov edi, dword [esp + 0x10]
xorps xmm0, xmm0
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
mov eax, dword [ebx + 8]
mov dword [edi], eax
mov eax, edi
mov edi, dword [esp + 0x38]
mov dword [eax + 0x10], esi
mov dword [ebx + 8], eax
mov eax, 0x9c
cmp cx, ax
jne 0x50746a
push 1
push edi
call fcn.004fc250
mov esi, dword [esp + 0x1c]
push 0
push 2
push 0
push 0x8b
push 0x20
push esi
call fcn.0051c640
mov esi, dword [esp + 0x5c]
add esp, 0x20
mov edx, dword [esp + 0x40]
jmp 0x5075b1
mov eax, 0xa1
cmp cx, ax
je 0x507488
mov eax, 0x9b
cmp cx, ax
je 0x507488
mov eax, 0x9f
cmp cx, ax
jne 0x5074db
push 0
push 8
push 0
push 1
push 0x20
push edx
call fcn.0051c640
lea eax, [esi + 4]
mov esi, dword [esp + 0x2c]
push eax
push 0x40
push 0
push 3
push 0x20
push esi
call fcn.0051c640
push 0
push 3
push dword [edi + 0x40]
push 0x8d
push 0x20
push esi
call fcn.0051c640
add esp, 0x48
push 0
push 3
push 0x18
push 0x81
push 0x20
push esi
call fcn.0051c640
add esp, 0x18
mov esi, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
jmp 0x5075b1
push ebx
push esi
push edi
call fcn.00505080
mov edx, dword [esp + 0x4c]
add esp, 0xc
mov esi, eax
jmp 0x5075b1
cmp dword [edi + 0xd8], 0
movzx edx, word [esi + 2]
mov eax, dword [edi + 0x14]
mov ecx, dword [edi]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x30], edx
mov al, byte [edx + eax]
mov byte [esp + 0x3c], al
jne 0x507590
test al, al
jne 0x507546
mov eax, dword [edi + 0x20]
lea eax, [eax + edx*4]
push eax
push 0x8d
push 0
push 1
push 0x20
push ecx
call fcn.0051c640
mov ecx, dword [esp + 0x2c]
add esp, 0x18
mov edx, dword [esp + 0x30]
mov eax, dword [edi + 0x24]
shl edx, 3
push 0
mov dword [esp + 0x34], edx
add edx, 4
push 2
add eax, edx
push eax
push 0x8d
push 0x20
push ecx
call fcn.0051c640
add esp, 0x18
cmp byte [esp + 0x3c], 0
jne 0x507590
mov eax, dword [edi + 0x24]
add eax, dword [esp + 0x30]
push 0
push 1
push eax
push 0x8d
push 0x20
push dword [esp + 0x28]
call fcn.0051c640
add esp, 0x18
mov edx, dword [esp + 0x40]
add esi, 4
jmp 0x5075b1
lea ecx, [esi + 2]
nop dword [eax]
movzx eax, word [ecx + 2]
cmp word [ecx + eax*2], 0x78
lea ecx, [ecx + eax*2]
je 0x5075a0
lea esi, [ecx + 4]
test esi, esi
je case.0x506e53.98
cmp esi, edx
jb 0x506e36
cmp dword [esp + 0x18], 0
je case.0x506e53.98
cmp dword [ebp], 0
je 0x5075ce
xor ecx, ecx
jmp 0x5075db
push 0x24
push ebp
call fcn.00511ae0
add esp, 8
mov ecx, eax
cmp dword [ebp], 0
jne case.0x506e53.98
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
movups xmmword [ecx + 0x10], xmm0
mov dword [ecx + 0x20], 0
mov eax, dword [ebx + 8]
mov dword [ecx], eax
mov dword [ebx + 8], ecx
mov dword [ecx + 0x10], 0x6f9514
mov eax, dword [edi + 0x1c]
mov dword [ecx + 0x14], eax
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x1c], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret