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

Disassembly:
push 0xffffffffffffffff
push 0x100daf98
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x1010b334]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1010b334]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov eax, dword [esp + 0x70]
mov ebp, dword [esp + 0x74]
xor ebx, ebx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
mov dword [esp + 0x68], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov byte [esp + 0x68], 1
lea ecx, [esp + 0x1c]
push ecx
push 0x100ea380
push eax
call 0x539cd3
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x507a21
mov eax, dword [esp + 0x7c]
cmp eax, ebx
jne 0x507978
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x5078e7
sub eax, edx
mov edx, eax
mov eax, ebp
lea edi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x507900
push 1
sub eax, edi
push edx
mov ecx, eax
push ebp
mov eax, esi
lea edx, [esp + 0x20]
call fcn.00509630
cmp eax, ebx
je 0x507a04
mov byte [esp + 0x68], bl
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x50793d
push eax
call 0x535b08
add esp, 4
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x507952
push eax
call 0x535b08
add esp, 4
mov dword [esp + 0x18], ebx
mov dword [esp + 0x68], 0xffffffff
cmp dword [esp + 0x58], 0x10
jb 0x50796e
mov ecx, dword [esp + 0x44]
push ecx
call 0x5352f4
add esp, 4
mov eax, 1
jmp 0x507a6d
cmp eax, 1
jne 0x507af3
mov ecx, esi
call fcn.00506960
mov edi, eax
cmp edi, 0x7fffffff
je 0x507a21
mov ecx, esi
lea esi, [esp + 0x24]
call fcn.00506c00
mov byte [esp + 0x68], 2
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x4c]
call fcn.0048f650
mov byte [esp + 0x68], 1
cmp dword [esp + 0x3c], 0x10
jb 0x5079cc
mov edx, dword [esp + 0x28]
push edx
call 0x5352f4
add esp, 4
cmp dword [esp + 0x54], ebx
mov esi, 0xf
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
je 0x507a21
cmp dword [esp + 0x58], 0x10
mov eax, dword [esp + 0x44]
jae 0x5079f2
lea eax, [esp + 0x44]
mov ecx, dword [esp + 0x20]
push eax
call fcn.00506720
cmp eax, edi
jge 0x507a9e
lea eax, [esp + 0x1c]
push eax
push 0x100ea380
push ebx
call 0x539cd3
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x5078d6
mov byte [esp + 0x68], bl
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x507a3a
push eax
call 0x535b08
add esp, 4
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x507a4f
push eax
call 0x535b08
add esp, 4
mov dword [esp + 0x18], ebx
mov dword [esp + 0x68], 0xffffffff
cmp dword [esp + 0x58], 0x10
jb 0x507a6b
mov ecx, dword [esp + 0x44]
push ecx
call 0x5352f4
add esp, 4
xor eax, eax
mov dword [esp + 0x58], 0xf
mov byte [esp + 0x44], bl
mov dword [esp + 0x54], ebx
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call 0x5361f8
add esp, 0x58
ret 0x10
mov byte [esp + 0x68], bl
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x507ab7
push eax
call 0x535b08
add esp, 4
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x507acc
push eax
call 0x535b08
add esp, 4
mov dword [esp + 0x18], ebx
mov dword [esp + 0x68], 0xffffffff
cmp dword [esp + 0x58], 0x10
jb 0x507ae8
mov edx, dword [esp + 0x44]
push edx
call 0x5352f4
add esp, 4
mov dword [esp + 0x58], esi
mov eax, 1
jmp 0x507a75
mov byte [esp + 0x68], bl
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x507b0c
push eax
call 0x535b08
add esp, 4
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x507b21
push eax
call 0x535b08
add esp, 4
mov dword [esp + 0x18], ebx
mov dword [esp + 0x68], 0xffffffff
cmp dword [esp + 0x58], 0x10
jb 0x507a6b
mov eax, dword [esp + 0x44]
push eax
jmp 0x507a63