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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x160
mov edi, edx
mov esi, ecx
mov eax, dword [0x54a010]
xor eax, ebp
mov dword [esp + 0x158], eax
lea ebx, [esp + 0x50]
push 0x100
push 0xff
push ebx
call fcn.004a3810
add esp, 0xc
xor eax, eax
dec eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x24], eax
test edi, edi
je 0x506c6f
movups xmm0, xmmword [edi + 0x1c]
movups xmmword [esp + 0x6c], xmm0
movups xmm0, xmmword [edi]
movups xmm1, xmmword [edi + 0x10]
movaps xmmword [esp + 0x60], xmm1
movaps xmmword [esp + 0x50], xmm0
mov edi, ebx
mov eax, dword [ebp + 8]
mov dword [esp + 0x7c], eax
push 5
push esi
push ebx
call fcn.005126f0
add esp, 0xc
mov dword [esp + 0x80], eax
xor ebx, ebx
test eax, eax
jne 0x506c7a
mov ecx, dword [esp + 0x158]
xor ecx, ebp
call fcn.004a0403
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push ebx
call fcn.00512830
add esp, 4
jmp 0x506c35
mov ecx, eax
xor eax, eax
dec eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], eax
xor eax, eax
push 2
push eax
push eax
push ecx
push edi
mov esi, ecx
call fcn.00512720
add esp, 0x14
test eax, eax
jne 0x506ce0
push esi
lea eax, [esp + 0x54]
push eax
call fcn.00512780
add esp, 8
mov ecx, 0xffff
cmp eax, ecx
mov edi, 0xffff
mov dword [esp + 0x24], eax
cmovb edi, eax
mov dword [esp + 0x20], edx
test edx, edx
cmovne edi, ecx
mov dword [esp + 0x10], edi
push 0x404
call fcn.00464730
add esp, 4
test eax, eax
jne 0x506d59
mov esi, dword [esp + 0x80]
xor eax, eax
push 2
push eax
push eax
push esi
lea edi, [esp + 0x60]
push edi
call fcn.00512720
add esp, 0x14
mov ecx, 0
mov edx, 0
test eax, eax
jne 0x506f77
push esi
push edi
call fcn.00512780
add esp, 8
mov ecx, 0xffff
cmp eax, ecx
mov ebx, 0xffff
mov dword [esp + 0x18], eax
cmovb ebx, eax
mov dword [esp + 0x24], edx
test edx, edx
cmovne ebx, ecx
mov dword [esp + 0x10], 0
push 0x404
call fcn.00464730
add esp, 4
test eax, eax
jne 0x506e59
xor ecx, ecx
xor edx, edx
jmp 0x506f73
mov ebx, eax
mov dword [esp + 8], esi
mov dword [esp + 0xc], 0
mov edi, 4
cmp edi, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
sbb eax, 0
jae 0x506f50
add edi, 0x400
mov eax, dword [esp + 0xc]
adc eax, 0
mov ecx, dword [esp + 0x10]
cmp edi, ecx
cmovae edi, ecx
test eax, eax
cmovne edi, ecx
mov ecx, dword [esp + 0x24]
sub ecx, edi
mov edx, dword [esp + 0x20]
sbb edx, 0
mov eax, 0x404
cmp edi, eax
mov esi, 0x404
cmovb esi, edi
push 0
mov dword [esp + 0x1c], edx
push edx
mov dword [esp + 0x24], ecx
push ecx
push dword [esp + 0x14]
lea eax, [esp + 0x60]
push eax
call fcn.00512720
add esp, 0x14
test eax, eax
jne 0x506f50
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x14], eax
call dword [section..00cfg]
push esi
push ebx
push dword [esp + 0x10]
push dword [esp + 0x20]
call ecx
add esp, 0x10
cmp eax, esi
jne 0x506f50
xor edx, edx
mov ecx, 0
cmp esi, 4
jb 0x506e39
add esi, 0xfffffffc
cmp byte [ebx + esi], 0x50
jne 0x506e2c
cmp byte [ebx + esi + 1], 0x4b
jne 0x506e2c
cmp byte [ebx + esi + 2], 6
jne 0x506e2c
cmp byte [ebx + esi + 3], 7
je 0x506e48
lea eax, [esi - 1]
test esi, esi
mov esi, eax
jg 0x506e11
xor edx, edx
xor ecx, ecx
mov eax, edx
or eax, ecx
je 0x506d6c
jmp 0x5071d4
mov eax, dword [esp + 0x1c]
add eax, esi
mov ecx, dword [esp + 0x18]
adc ecx, 0
mov edx, eax
jmp 0x506e39
mov edi, eax
mov dword [esp + 0xc], esi
mov esi, 4
mov dword [esp + 0x20], ebx
cmp esi, ebx
mov ecx, dword [esp + 0x10]
mov eax, ecx
sbb eax, 0
jae 0x506f5e
add esi, 0x400
adc ecx, 0
cmp esi, ebx
cmovae esi, ebx
test ecx, ecx
cmovne esi, ebx
mov dword [esp + 0x10], 0
mov ecx, dword [esp + 0x18]
sub ecx, esi
mov edx, dword [esp + 0x24]
sbb edx, 0
mov eax, 0x404
cmp esi, eax
mov ebx, 0x404
cmovb ebx, esi
push 0
mov dword [esp + 0x20], edx
push edx
mov dword [esp + 0x1c], ecx
push ecx
push dword [esp + 0x18]
lea eax, [esp + 0x60]
push eax
call fcn.00512720
add esp, 0x14
test eax, eax
jne 0x506f5e
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x6c]
mov dword [esp + 8], eax
call dword [section..00cfg]
push ebx
push edi
push dword [esp + 0x14]
push dword [esp + 0x14]
call ecx
add esp, 0x10
cmp eax, ebx
jne 0x506f5e
xor ecx, ecx
mov edx, 0
cmp ebx, 4
jb 0x506f31
add ebx, 0xfffffffc
cmp byte [edi + ebx], 0x50
jne 0x506f24
cmp byte [edi + ebx + 1], 0x4b
jne 0x506f24
cmp byte [edi + ebx + 2], 5
jne 0x506f24
cmp byte [edi + ebx + 3], 6
je 0x506f41
lea eax, [ebx - 1]
test ebx, ebx
mov ebx, eax
jg 0x506f09
xor ecx, ecx
xor edx, edx
mov eax, ecx
or eax, edx
mov ebx, dword [esp + 0x20]
je 0x506e68
jmp 0x506f62
mov ecx, dword [esp + 0x14]
add ecx, ebx
mov edx, dword [esp + 0x1c]
adc edx, 0
jmp 0x506f31
push ebx
call fcn.00464780
add esp, 4
jmp 0x506ce0
xor ecx, ecx
xor edx, edx
push edi
mov esi, ecx
mov edi, edx
call fcn.00464780
mov edx, edi
mov ecx, esi
add esp, 4
lea edi, [esp + 0x50]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov eax, ecx
or eax, edx
sete bl
lea esi, [esp + 0x90]
xor eax, eax
mov dword [esi + 0xa8], eax
push eax
push edx
push ecx
push dword [esi - 0x10]
push edi
call fcn.00512720
add esp, 0x14
test eax, eax
setne al
or al, bl
mov byte [esp + 8], al
mov edx, dword [esi - 0x10]
lea eax, [esp + 0x3c]
mov ecx, edi
push eax
call fcn.00508840
add esp, 4
mov dword [esp + 0x14], eax
mov edx, dword [esi - 0x10]
lea eax, [esp + 0x38]
mov ecx, edi
push eax
call fcn.00508de0
add esp, 4
mov dword [esp + 0x1c], eax
mov edx, dword [esi - 0x10]
lea eax, [esp + 0x34]
mov ecx, edi
push eax
call fcn.00508de0
add esp, 4
mov ebx, eax
mov edx, dword [esi - 0x10]
mov ecx, edi
lea eax, [esp + 0x3c]
push eax
call fcn.00508de0
add esp, 4
mov ecx, edi
mov dword [esp + 0x18], eax
lea edi, [esp + 0x3c]
mov eax, dword [edi]
xor edx, edx
mov dword [esi - 4], edx
mov dword [esi - 8], eax
mov edx, dword [esi - 0x10]
push edi
call fcn.00508de0
add esp, 4
or eax, dword [esp + 0x18]
or ebx, dword [esp + 0x1c]
or ebx, eax
or ebx, dword [esp + 0x14]
setne al
or al, byte [esp + 8]
movzx ebx, al
neg ebx
mov eax, dword [esi - 8]
xor eax, dword [edi]
lea ecx, [esp + 0x34]
mov ecx, dword [ecx]
lea edx, [esp + 0x38]
or ecx, dword [edx]
mov ecx, 0xffffff99
cmovne ebx, ecx
or eax, dword [esi - 4]
cmovne ebx, ecx
mov edx, dword [esi - 0x10]
lea esi, [esp + 0x50]
mov ecx, esi
push edi
call fcn.00508840
add esp, 4
mov dword [esp + 8], eax
mov eax, dword [edi]
xor edx, edx
lea ecx, [esp + 0x90]
mov dword [ecx + 0x34], edx
mov dword [ecx + 0x30], eax
mov edx, dword [ecx - 0x10]
mov ecx, esi
push edi
call fcn.00508840
add esp, 4
mov dword [esp + 0x14], eax
mov eax, dword [edi]
lea ecx, [esp + 0x90]
xor edx, edx
mov dword [ecx + 0x3c], edx
mov dword [ecx + 0x38], eax
mov edx, dword [ecx - 0x10]
mov eax, ecx
mov ecx, esi
push eax
call fcn.00508de0
add esp, 4
or eax, dword [esp + 0x14]
or eax, dword [esp + 8]
mov edi, 0xffffffff
cmove edi, ebx
mov eax, dword [esp + 0xc0]
add eax, dword [esp + 0xc8]
mov ecx, dword [esp + 0xc4]
adc ecx, dword [esp + 0xcc]
mov edx, dword [esp + 0xc]
mov esi, edx
cmp edx, eax
mov edx, dword [esp + 0x10]
mov ebx, edx
sbb edx, ecx
jb 0x5071b1
test edi, edi
jne 0x5071b1
mov edx, esi
sub edx, eax
mov edi, ebx
mov eax, ebx
sbb eax, ecx
mov dword [esp + 0x98], edx
mov dword [esp + 0x9c], eax
mov dword [esp + 0xb8], esi
mov dword [esp + 0xbc], ebx
xor ebx, ebx
mov dword [esp + 0x130], ebx
mov dword [esp + 0x134], ebx
push 0x100
call fcn.00464730
add esp, 4
mov esi, eax
test eax, eax
lea eax, [esp + 0x50]
je 0x506c57
push 0x100
push eax
push esi
call fcn.004a3290
add esp, 0xc
mov eax, dword [esi + 0x78]
mov ecx, dword [esi + 0x7c]
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x58], eax
xor edi, edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x50], edi
lea eax, [esi + 0xd8]
mov edx, esi
sub edx, 0xffffff80
sub esp, 0x1c
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edi
xorps xmm0, xmm0
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov ecx, esi
call fcn.00507610
add esp, 0x1c
xor ecx, ecx
test eax, eax
sete cl
mov dword [esi + 0x64], edi
mov dword [esi + 0x60], ecx
mov ebx, esi
jmp 0x506c57
mov esi, dword [esp + 0x80]
mov ecx, dword [esp + 0x64]
mov edi, dword [esp + 0x6c]
call dword [section..00cfg]
push esi
push edi
call ecx
add esp, 8
xor ebx, ebx
jmp 0x506c57
push ebx
mov esi, edx
mov edi, ecx
call fcn.00464780
add esp, 4
push 0
push edi
push esi
mov esi, dword [esp + 0x14]
push esi
lea eax, [esp + 0x60]
push eax
call fcn.00512720
add esp, 0x14
test eax, eax
jne 0x506ce0
lea ebx, [esp + 0x4c]
lea ecx, [esp + 0x50]
mov edx, esi
push ebx
call fcn.00508840
add esp, 4
test eax, eax
jne 0x506ce0
lea ecx, [esp + 0x50]
mov edx, esi
push ebx
call fcn.00508840
add esp, 4
or eax, dword [esp + 0x4c]
jne 0x506ce0
lea edi, [esp + 0x40]
lea ecx, [esp + 0x50]
mov edx, esi
push edi
call fcn.00508a10
add esp, 4
test eax, eax
jne 0x506ce0
lea ecx, [esp + 0x50]
mov edx, esi
push ebx
call fcn.00508840
add esp, 4
test eax, eax
jne 0x506ce0
cmp dword [esp + 0x4c], 1
jne 0x506ce0
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
push 0
mov dword [esp + 0x14], ecx
push ecx
mov dword [esp + 0x14], eax
push eax
push esi
lea eax, [esp + 0x60]
push eax
call fcn.00512720
add esp, 0x14
test eax, eax
jne 0x506ce0
lea ecx, [esp + 0x50]
mov edx, esi
push ebx
call fcn.00508840
add esp, 4
test eax, eax
jne 0x506ce0
cmp dword [esp + 0x4c], 0x6064b50
jne 0x506ce0
mov eax, dword [esp + 0xc]
or eax, dword [esp + 0x10]
je 0x506ce0
lea ecx, [esp + 0x88]
mov dword [ecx + 0xb0], 1
xor eax, eax
push eax
push dword [esp + 0x14]
push dword [esp + 0x14]
push dword [ecx - 8]
lea esi, [esp + 0x60]
push esi
call fcn.00512720
add esp, 0x14
mov dword [esp + 8], eax
lea eax, [esp + 0x88]
mov edx, dword [eax - 8]
lea eax, [esp + 0x3c]
mov ecx, esi
push eax
call fcn.00508840
add esp, 4
mov dword [esp + 0x14], eax
lea eax, [esp + 0x88]
mov edx, dword [eax - 8]
mov ecx, esi
push edi
call fcn.00508a10
add esp, 4
mov dword [esp + 0x1c], eax
lea edi, [esp + 0x88]
mov edx, dword [edi - 8]
mov ecx, esi
push ebx
call fcn.00508de0
add esp, 4
mov dword [esp + 0x18], eax
mov edx, dword [edi - 8]
mov ecx, esi
push ebx
call fcn.00508de0
add esp, 4
mov edi, eax
lea ebx, [esp + 0x88]
mov edx, dword [ebx - 8]
lea eax, [esp + 0x38]
mov ecx, esi
push eax
call fcn.00508840
add esp, 4
mov dword [esp + 0x24], eax
mov edx, dword [ebx - 8]
lea eax, [esp + 0x34]
mov ecx, esi
push eax
call fcn.00508840
add esp, 4
mov ebx, eax
lea eax, [esp + 0x88]
mov edx, dword [eax - 8]
mov ecx, esi
push eax
call fcn.00508a10
add esp, 4
mov dword [esp + 0x20], eax
lea eax, [esp + 0x88]
mov edx, dword [eax - 8]
lea eax, [esp + 0x28]
mov ecx, esi
push eax
mov esi, eax
call fcn.00508a10
add esp, 4
or eax, dword [esp + 0x20]
or ebx, dword [esp + 0x24]
or ebx, eax
or edi, dword [esp + 0x18]
or edi, dword [esp + 0x1c]
or edi, ebx
or edi, dword [esp + 0x14]
xor ebx, ebx
or edi, dword [esp + 8]
setne bl
mov eax, dword [esi]
mov ecx, dword [esi + 4]
lea edx, [esp + 0x88]
xor ecx, dword [edx + 4]
xor eax, dword [edx]
neg ebx
lea edx, [esp + 0x34]
mov edx, dword [edx]
lea esi, [esp + 0x38]
or edx, dword [esi]
mov edx, 0xffffff99
cmovne ebx, edx
or eax, ecx
cmovne ebx, edx
lea eax, [esp + 0xc0]
mov edx, dword [eax - 0x40]
lea ecx, [esp + 0x50]
push eax
call fcn.00508a10
add esp, 4
mov edi, eax
lea esi, [esp + 0xc8]
mov edx, dword [esi - 0x48]
lea ecx, [esp + 0x50]
push esi
call fcn.00508a10
add esp, 4
or eax, edi
mov edi, 0xffffffff
cmove edi, ebx
xor eax, eax
mov dword [esi - 0x38], eax
jmp 0x5070c4