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

Disassembly:
push 0xffffffffffffffff
push 0x5b1f68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov dword [esp + 0x18], ebp
call fcn.00507440
test eax, eax
je 0x507414
mov ebx, dword [esp + 0x30]
mov eax, dword [0x64fe78]
mov ecx, dword [eax + 0x9188]
test ecx, ecx
je 0x506c1d
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
push ebx
push ecx
mov ecx, ebp
call fcn.00509810
test eax, eax
jne 0x50742b
jmp 0x507401
mov edi, dword [ebp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [ebp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0xc]
push eax
call fcn.00559765
mov eax, dword [ebp + 0x34]
add esp, 4
test eax, eax
mov eax, dword [0x64fe78]
mov ecx, dword [eax + 0x918c]
je 0x506d56
test ecx, ecx
je 0x506c8d
mov ecx, dword [eax + 0x91d8]
mov eax, dword [ecx - 8]
test eax, eax
je 0x507401
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x3c]
push edx
push eax
call fcn.0043c760
add esp, 8
test al, al
je 0x507401
mov eax, dword [ebp + 0xc]
push 0xffffffffffffffff
push ebx
push eax
mov ecx, ebp
call fcn.00509810
test eax, eax
je 0x507401
mov ecx, dword [0x64fe78]
mov edx, dword [ebx + 4]
mov eax, dword [ecx + 0x918c]
test eax, eax
je 0x506e49
cmp dword [ecx + 0x91d4], 1
jne 0x506cde
mov eax, dword [ebp + 0x38]
push edx
push eax
call fcn.0043c760
add esp, 8
test al, al
je 0x507401
mov ecx, dword [0x64fe78]
cmp dword [ecx + 0x91d4], 2
jne 0x506d05
mov eax, dword [ebx + 0x70]
mov ecx, dword [ebp + 0x38]
push eax
push ecx
call fcn.0043c760
add esp, 8
test al, al
je 0x507401
mov ecx, dword [0x64fe78]
cmp dword [ecx + 0x91d4], 3
jne 0x506d2c
mov eax, dword [ebx + 0x74]
mov ecx, dword [ebp + 0x38]
push eax
push ecx
call fcn.0043c760
add esp, 8
test al, al
je 0x507401
mov ecx, dword [0x64fe78]
cmp dword [ecx + 0x91d4], 4
jne 0x506e49
mov eax, dword [ebx + 0x78]
mov ebp, dword [ebp + 0x38]
push eax
push ebp
call fcn.0043c760
add esp, 8
test al, al
je 0x507401
jmp 0x506e43
test ecx, ecx
je 0x506d83
mov ecx, dword [eax + 0x91d8]
mov eax, dword [ecx - 8]
test eax, eax
je 0x507401
mov eax, dword [ebp + 0x3c]
mov edx, dword [ebp + 0xc]
push eax
push edx
call fcn.005589c0
add esp, 8
test eax, eax
je 0x507401
mov eax, dword [ebp + 0xc]
push 0xffffffffffffffff
push ebx
push eax
mov ecx, ebp
call fcn.00509810
test eax, eax
je 0x507401
mov ecx, dword [0x64fe78]
mov edx, dword [ebx + 4]
mov eax, dword [ecx + 0x918c]
test eax, eax
je 0x506e49
cmp dword [ecx + 0x91d4], 1
jne 0x506dd4
mov eax, dword [ebp + 0x38]
push eax
push edx
call fcn.005589c0
add esp, 8
test eax, eax
je 0x507401
mov ecx, dword [0x64fe78]
cmp dword [ecx + 0x91d4], 2
jne 0x506dfb
mov eax, dword [ebp + 0x38]
mov ecx, dword [ebx + 0x70]
push eax
push ecx
call fcn.005589c0
add esp, 8
test eax, eax
je 0x507401
mov ecx, dword [0x64fe78]
cmp dword [ecx + 0x91d4], 3
jne 0x506e22
mov eax, dword [ebp + 0x38]
mov ecx, dword [ebx + 0x74]
push eax
push ecx
call fcn.005589c0
add esp, 8
test eax, eax
je 0x507401
mov ecx, dword [0x64fe78]
cmp dword [ecx + 0x91d4], 4
jne 0x506e49
mov ebp, dword [ebp + 0x38]
mov eax, dword [ebx + 0x78]
push ebp
push eax
call fcn.005589c0
add esp, 8
test eax, eax
je 0x507401
mov ecx, dword [0x64fe78]
mov eax, dword [ecx + 0x919c]
test eax, eax
je 0x506e73
mov ecx, dword [ecx + 0x91c8]
mov eax, dword [ebx]
push ecx
push eax
call fcn.0055724d
add esp, 8
test eax, eax
jne 0x507401
mov ecx, dword [0x64fe78]
mov eax, dword [ecx + 0x9198]
test eax, eax
je 0x506fce
mov ecx, dword [ecx + 0x91dc]
mov eax, dword [ecx - 8]
test eax, eax
je 0x507401
mov eax, dword [ebx + 0x5c]
push ecx
push eax
call fcn.005589c0
add esp, 8
test eax, eax
jne 0x506fc8
mov ecx, dword [0x64fe78]
push 0x610d5c
mov eax, dword [ecx + 0x91dc]
push eax
call fcn.0055724d
add esp, 8
test eax, eax
jne 0x507401
mov eax, dword [ebx + 0x5c]
push 0x605200
push eax
call fcn.0055724d
add esp, 8
test eax, eax
je 0x507401
mov eax, dword [ebx + 0x5c]
push 0x605468
push eax
call fcn.0055724d
add esp, 8
test eax, eax
je 0x507401
mov eax, dword [ebx + 0x5c]
push 0x605458
push eax
call fcn.0055724d
add esp, 8
test eax, eax
je 0x507401
mov eax, dword [ebx + 0x5c]
push 0x60b428
push eax
call fcn.0055724d
add esp, 8
test eax, eax
je 0x507401
mov eax, dword [ebx + 0x5c]
push 0x60c7b8
push eax
call fcn.0055724d
add esp, 8
test eax, eax
je 0x507401
mov eax, dword [ebx + 0x5c]
push 0x60c7ac
push eax
call fcn.0055724d
add esp, 8
test eax, eax
je 0x507401
mov edx, dword [0x64fe78]
push 0x610d54
mov eax, dword [edx + 0x91dc]
push eax
call fcn.0055724d
add esp, 8
test eax, eax
je 0x506fc8
mov eax, dword [ebx + 0x5c]
push 0x605468
push eax
call fcn.0055724d
add esp, 8
test eax, eax
je 0x507401
mov eax, dword [ebx + 0x5c]
push 0x60c7b8
push eax
call fcn.0055724d
add esp, 8
test eax, eax
je 0x507401
mov eax, dword [ebx + 0x5c]
push 0x60c7ac
push eax
call fcn.0055724d
add esp, 8
test eax, eax
je 0x507401
mov ecx, dword [0x64fe78]
mov eax, dword [ecx + 0x91a0]
test eax, eax
je 0x5070a6
mov eax, dword [ecx + 0x91e0]
mov edx, dword [eax - 8]
test edx, edx
je 0x507401
mov edx, dword [0x614cb0]
mov dword [esp + 0x10], edx
mov eax, dword [ebx + 0x58]
mov edx, dword [ebx + 4]
mov dword [esp + 0x28], 0
mov esi, dword [eax - 8]
test esi, esi
jne 0x50700e
mov eax, edx
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push 0
push edx
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ecx + 0xa448]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push eax
call fcn.004f6dc0
test eax, eax
jge 0x50705b
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.00575ae8
jmp 0x507401
mov eax, dword [0x64fe78]
mov ecx, dword [esp + 0x10]
push ecx
mov eax, dword [eax + 0x91e0]
push eax
call fcn.0055724d
add esp, 8
test eax, eax
je 0x50708e
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.00575ae8
jmp 0x507401
or esi, 0xffffffff
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], esi
call fcn.00575ae8
mov ecx, dword [0x64fe78]
jmp 0x5070a9
or esi, 0xffffffff
mov eax, dword [ecx + 0x91ac]
test eax, eax
je 0x50716b
mov edx, dword [ecx + 0x91d0]
mov eax, dword [edx - 8]
test eax, eax
je 0x507401
mov eax, dword [0x614cb0]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x58]
mov edx, dword [ebx + 4]
mov dword [esp + 0x28], 1
mov edi, dword [eax - 8]
test edi, edi
jne 0x5070e8
mov eax, edx
push 0
push 0
lea edx, [esp + 0x1c]
push 0
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ecx + 0xa448]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push eax
call fcn.004f6dc0
test eax, eax
jge 0x507131
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], esi
call fcn.00575ae8
jmp 0x507401
mov eax, dword [0x64fe78]
mov ecx, dword [esp + 0x14]
push ecx
mov eax, dword [eax + 0x91d0]
push eax
call fcn.0055724d
add esp, 8
mov dword [esp + 0x28], esi
test eax, eax
lea ecx, [esp + 0x14]
je 0x507160
call fcn.00575ae8
jmp 0x507401
call fcn.00575ae8
mov ecx, dword [0x64fe78]
mov eax, dword [ecx + 0x9194]
test eax, eax
je 0x5071ab
add ecx, 0x91e4
push ecx
lea ecx, [ebx + 8]
call fcn.0054ea5d
test eax, eax
je 0x5071a5
mov edx, dword [0x64fe78]
lea ecx, [ebx + 0x14]
add edx, 0x91e4
push edx
call fcn.0054ea5d
test eax, eax
jne 0x507401
mov ecx, dword [0x64fe78]
mov eax, dword [ecx + 0x91a4]
test eax, eax
je 0x5071e9
add ecx, 0x91f0
push ecx
lea ecx, [ebx + 8]
call fcn.0054ea93
test eax, eax
je 0x5071e3
mov eax, dword [0x64fe78]
lea ecx, [ebx + 0x14]
add eax, 0x91f0
push eax
call fcn.0054ea93
test eax, eax
jne 0x507401
mov ecx, dword [0x64fe78]
mov eax, dword [ecx + 0x91a8]
test eax, eax
je 0x507269
mov eax, dword [ecx + 0x91c4]
test eax, eax
jl 0x507401
cmp eax, dword [ecx + 0x8d74]
jge 0x507401
lea edx, [eax + eax*2]
lea ebp, [ebx + 8]
lea edx, [edx + edx*8]
shl edx, 1
sub edx, eax
mov eax, dword [ecx + 0x8d70]
mov ecx, ebp
lea esi, [eax + edx*4]
lea edi, [esi + 8]
push edi
call fcn.0054ea5d
test eax, eax
je 0x507243
push edi
lea ecx, [ebx + 0x14]
call fcn.0054ea5d
test eax, eax
jne 0x507401
add esi, 0x14
mov ecx, ebp
push esi
call fcn.0054ea93
test eax, eax
je 0x507263
push esi
lea ecx, [ebx + 0x14]
call fcn.0054ea93
test eax, eax
jne 0x507401
mov ecx, dword [0x64fe78]
mov eax, dword [ecx + 0x9190]
test eax, eax
je 0x5072d7
mov eax, dword [ecx + 0x91c0]
test eax, eax
jl 0x507401
cmp eax, dword [0x681148]
jge 0x507401
lea edx, [eax + eax*4]
mov esi, dword [ebx + 0x50]
lea eax, [eax + edx*2]
mov edx, dword [0x681144]
lea edx, [edx + eax*4]
mov eax, dword [edx + 0x1c]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cmp esi, eax
jae 0x5072bb
cmp dword [ebx + 0x54], eax
jb 0x507401
mov edx, dword [edx + 0x20]
lea eax, [edx + edx*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cmp esi, eax
jbe 0x5072d7
cmp dword [ebx + 0x54], eax
ja 0x507401
mov eax, dword [ecx + 0x91b4]
test eax, eax
je 0x507306
fld qword [ebx + 0x2c]
fcomp qword [0x5bb338]
fnstsw ax
test ah, 0x40
je 0x5072f8
mov eax, 1
jmp 0x5072fa
xor eax, eax
cmp eax, dword [ecx + 0x91bc]
je 0x507401
mov eax, dword [ecx + 0x91b0]
test eax, eax
je 0x5073ed
fld qword [ebx + 0x20]
fcomp qword [0x5bb338]
fnstsw ax
test ah, 0x40
je 0x50732b
mov edi, 1
jmp 0x50732d
xor edi, edi
mov ecx, dword [ecx + 0x91b8]
cmp ecx, 2
jge 0x507345
cmp edi, ecx
je 0x507401
jmp 0x5073ed
mov eax, dword [ebx + 0x50]
push 0
push eax
call fcn.004d1850
add esp, 8
test eax, eax
jl 0x507401
mov ecx, dword [0x614cb0]
mov dword [esp + 0x30], ecx
mov edx, dword [ebx + 0x5c]
push eax
mov eax, dword [ebx + 4]
push edx
push eax
lea ecx, [esp + 0x3c]
push str._s__s__i
push ecx
mov dword [esp + 0x3c], 2
call fcn.0056d732
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x44]
add esp, 0x14
lea eax, [esp + 0x1c]
lea esi, [edx + 0x40]
mov dword [esp + 0x1c], 1
push eax
push ecx
mov ecx, esi
call fcn.00570d1a
test eax, eax
je 0x5073bf
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call fcn.00575ae8
jmp 0x507401
mov edx, dword [esp + 0x30]
mov ecx, esi
push edx
call fcn.00570d3c
test edi, edi
mov dword [eax], 1
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x30]
jne 0x5073e8
call fcn.00575ae8
jmp 0x507401
call fcn.00575ae8
mov ecx, dword [esp + 0x18]
push 0xffffffffffffffff
push ebx
mov eax, dword [ecx + 8]
push eax
call fcn.00509810
test eax, eax
jne 0x50742b
mov ebp, dword [esp + 0x18]
mov ecx, ebp
call fcn.00507440
test eax, eax
jne 0x506bf3
xor eax, eax
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
mov eax, 1
jmp 0x507416