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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x509025
sub esp, 0x60
mov eax, dword [esp + 0x68]
mov dword [esp], eax
mov ecx, dword [esp + 0x6c]
mov dword [esp + 4], ecx
call fcn.00509790
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 8]
mov ebx, dword [esp + 0xc]
test ecx, ecx
je 0x508df5
xor edx, edx
jmp 0x508e01
test ebx, ebx
jbe 0x50901b
xor ecx, ecx
xor eax, eax
test ecx, ecx
jne 0x509007
mov eax, dword [esp + 0x64]
mov ecx, dword [eax + 8]
mov dword [esp], ecx
mov dword [esp + 4], edx
call fcn.004607a0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
test eax, eax
je 0x508f8b
mov dword [esp + 0x1c], eax
mov dword [esp], eax
call fcn.00471270
mov eax, dword [esp + 4]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x24], ecx
lea edx, [0x67b880]
mov dword [esp], edx
call fcn.0040b7c0
mov eax, dword [esp + 4]
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp], ecx
call fcn.00409090
mov eax, dword [esp + 4]
lea ecx, [0x710224]
mov edx, dword [esp + 0x28]
mov dword [edx], ecx
mov ecx, dword [0x906830]
test ecx, ecx
jne 0x508e89
mov dword [edx + 4], eax
jmp 0x508e91
lea edi, [edx + 4]
call fcn.00462970
mov ecx, dword [esp + 0x6c]
mov dword [edx + 0xc], ecx
mov ebx, dword [0x906830]
test ebx, ebx
jne 0x508eab
mov ebx, dword [esp + 0x68]
mov dword [edx + 8], ebx
jmp 0x508eb9
lea edi, [edx + 8]
mov eax, dword [esp + 0x68]
call fcn.00462970
mov ebx, eax
lea edi, [esp + 0x30]
xor eax, eax
call fcn.00462be4
lea ecx, [0x6a2cfb]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x38], ebx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x3c], ecx
lea ecx, [0x6a2183]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], 0xe
mov ecx, dword [esp + 0x64]
mov edx, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], ecx
lea ecx, [0x69c5cd]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], 2
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x5c], ecx
mov dword [esp], 0
lea ecx, [esp + 0x30]
mov dword [esp + 4], ecx
mov dword [esp + 8], 6
mov dword [esp + 0xc], 6
call fcn.0044ea60
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
mov dword [edx + 0x14], ecx
mov ecx, dword [0x906830]
test ecx, ecx
jne 0x508f69
mov dword [edx + 0x10], eax
jmp 0x508f71
lea edi, [edx + 0x10]
call fcn.00462970
mov dword [esp + 0x70], 0
lea eax, [0x70fbe4]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], edx
add esp, 0x60
ret
mov dword [esp + 0x20], ecx
lea eax, [0x67b900]
mov dword [esp], eax
call fcn.0040b7c0
mov edi, dword [esp + 4]
mov eax, dword [0x906830]
test eax, eax
jne 0x508fb3
mov ecx, dword [esp + 0x64]
mov dword [edi], ecx
jmp 0x508fbc
mov eax, dword [esp + 0x64]
call fcn.00462970
mov ecx, dword [esp + 0x6c]
mov dword [edi + 8], ecx
mov ecx, dword [0x906830]
test ecx, ecx
jne 0x508fd6
mov eax, dword [esp + 0x68]
mov dword [edi + 4], eax
jmp 0x508fe8
lea ecx, [edi + 4]
mov eax, dword [esp + 0x68]
mov edx, edi
mov edi, ecx
call fcn.00462970
mov edi, edx
mov eax, dword [esp + 0x20]
mov dword [edi + 0xc], eax
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
add esp, 0x60
ret
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
add esp, 0x60
ret
xor eax, eax
mov ecx, eax
call fcn.004629f0
nop
call fcn.00461560
jmp fcn.00508db0