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

Disassembly:
mov ecx, dword [0x95eda0]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x509327
sub esp, 0x5c
mov eax, 0
mov dword [esp + 0x58], eax
mov byte [esp + 0x23], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov eax, dword [esp + 0x64]
mov ecx, dword [eax + 0x18]
mov edx, dword [esp + 0x68]
mov dword [esp], edx
lea ebx, [0x6af720]
mov dword [esp + 4], ebx
lea ebx, [0x95eb80]
mov dword [esp + 8], ebx
call ecx
mov eax, dword [esp + 0xc]
lea ecx, [0x696420]
cmp eax, ecx
jne 0x508e00
mov eax, dword [esp + 0x10]
jmp 0x508e02
xor eax, eax
test eax, eax
jne 0x508e11
mov ecx, dword [esp + 0x60]
xor eax, eax
jmp 0x508ec0
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax + 0x10]
mov edx, dword [esp + 0x70]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 0x2c]
mov edx, dword [eax + 8]
mov ecx, dword [esp + 4]
mov dword [esp + 0x30], ecx
mov ebx, dword [esp + 8]
test edx, edx
je 0x508e69
mov dword [esp + 0x24], ebx
mov eax, dword [edx]
mov ebp, dword [esp + 0x60]
mov esi, dword [ebp + 0x64]
mov edi, dword [ebp + 0x68]
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
call eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x24]
mov edx, dword [eax + 0xc]
test edx, edx
je 0x508eb9
lea edi, [esp + 0x40]
mov edx, eax
mov eax, 0
call fcn.00471a5a
lea ecx, [0x509340]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x50], ebx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x4c], edx
lea edx, [esp + 0x7c]
mov dword [esp + 0x54], edx
lea edx, [esp + 0x40]
mov dword [esp + 0x58], edx
mov byte [esp + 0x23], 1
jmp 0x508ebd
mov ecx, dword [esp + 0x60]
setne al
mov byte [esp + 0x22], al
mov edx, dword [ecx + 0x20]
mov dword [esp + 0x34], edx
mov ebx, dword [ecx + 0x1c]
mov dword [esp + 0x28], ebx
mov ebp, dword [esp + 0x6c]
test ebp, ebp
je 0x509215
mov esi, dword [ebp + 8]
cmp esi, 0x12a91fd1
ja 0x50903f
cmp esi, 0xaeb1564
jne 0x508fd1
lea esi, [0x76397c]
cmp ebp, esi
jne 0x509215
cmp ebx, esi
je 0x508f0d
xor edx, edx
mov dword [esp + 0x38], edx
lea eax, [ecx + 0x60]
mov dword [esp], eax
call fcn.00505ef0
movzx eax, byte [esp + 4]
test al, al
je 0x508f7b
mov eax, dword [esp + 0x60]
mov dword [esp], eax
mov ecx, dword [esp + 0x64]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x10], ecx
call fcn.0051ec70
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
lea ebx, [0x764c98]
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], edx
jmp 0x50910f
mov eax, dword [esp + 0x60]
mov dword [esp], eax
mov ecx, dword [esp + 0x64]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x10], ecx
call fcn.0051ec70
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
lea ebx, [0x764c98]
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], edx
jmp 0x50910f
cmp esi, 0x12a91fd1
jne 0x509215
lea esi, [0x763954]
cmp ebp, esi
jne 0x509215
cmp ebx, esi
je 0x508ff1
xor edx, edx
mov dword [esp], ecx
mov eax, dword [esp + 0x64]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x70]
mov dword [esp + 0x10], eax
call fcn.00521210
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
lea ebx, [0x764c6c]
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], edx
jmp 0x50910f
cmp esi, 0x13991ce1
jne 0x5090a6
lea esi, [0x763968]
cmp ebp, esi
jne 0x509215
cmp ebx, esi
je 0x50905b
xor edx, edx
mov dword [esp], ecx
mov eax, dword [esp + 0x64]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x70]
mov dword [esp + 0x10], eax
call fcn.005209a0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
lea ebx, [0x764cc4]
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], edx
jmp 0x50910f
cmp esi, 0x6d095bf6
jne 0x509215
lea esi, [0x763990]
cmp ebp, esi
jne 0x509215
cmp ebx, esi
je 0x5090c6
xor edx, edx
mov dword [esp], ecx
mov eax, dword [esp + 0x64]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x70]
mov dword [esp + 0x10], eax
call fcn.00513450
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
lea ebx, [0x764cf0]
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], edx
mov eax, dword [esp + 0x7c]
test eax, eax
jne 0x509147
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
movzx eax, byte [esp + 0x22]
test al, 1
je 0x509143
and eax, 0xfffffffe
mov byte [esp + 0x23], al
mov edx, dword [esp + 0x58]
mov eax, dword [edx]
call eax
add esp, 0x5c
ret
lea eax, [0x6d2180]
mov dword [esp], eax
call fcn.0040c000
mov eax, dword [esp + 4]
mov dword [eax + 4], 4
lea ecx, [0x6f712e]
mov dword [eax], ecx
mov ecx, dword [esp + 0x60]
mov edx, dword [ecx + 0x68]
mov ecx, dword [ecx + 0x64]
mov dword [eax + 0xc], edx
mov edx, dword [0x95f020]
test edx, edx
jne 0x509189
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x70]
jmp 0x50919e
call fcn.004717e0
mov dword [edi], ecx
mov ebx, dword [esp + 0x34]
mov dword [edi + 4], ebx
mov ebp, dword [esp + 0x70]
mov dword [edi + 8], ebp
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ebx
mov ecx, dword [esp + 0x6c]
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ebp
mov ecx, dword [esp + 0x7c]
mov ebx, dword [esp + 0x80]
mov dword [eax + 0x20], ecx
mov ecx, dword [0x95f020]
test ecx, ecx
je 0x5091d4
call fcn.004717c0
mov dword [edi], ebx
mov dword [eax + 0x24], ebx
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
lea ecx, [0x7631f0]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], eax
movzx eax, byte [esp + 0x22]
test al, 1
je 0x509211
and eax, 0xfffffffe
mov byte [esp + 0x23], al
mov edx, dword [esp + 0x58]
mov eax, dword [edx]
call eax
add esp, 0x5c
ret
lea eax, [0x6bf7c0]
mov dword [esp], eax
call fcn.0040c000
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x17
lea ecx, [0x7012fd]
mov dword [eax], ecx
mov ecx, dword [esp + 0x60]
mov edx, dword [ecx + 0x70]
mov ebx, dword [ecx + 0x6c]
mov dword [eax + 0xc], edx
mov edx, dword [0x95f020]
test edx, edx
je 0x509254
call fcn.004717c0
mov dword [edi], ebx
mov dword [esp + 0x3c], eax
mov dword [eax + 8], ebx
lea ecx, [0x6d2180]
mov dword [esp], ecx
call fcn.0040c000
mov eax, dword [esp + 4]
mov dword [eax + 4], 4
lea ecx, [0x6f712e]
mov dword [eax], ecx
mov ecx, dword [esp + 0x60]
mov edx, dword [ecx + 0x68]
mov ecx, dword [ecx + 0x64]
mov dword [eax + 0xc], edx
mov edx, dword [0x95f020]
test edx, edx
jne 0x5092a1
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x70]
mov esi, dword [esp + 0x3c]
jmp 0x5092bd
call fcn.004717f0
mov dword [edi], ecx
mov ebx, dword [esp + 0x34]
mov dword [edi + 4], ebx
mov ebp, dword [esp + 0x70]
mov dword [edi + 8], ebp
mov esi, dword [esp + 0x3c]
mov dword [edi + 0xc], esi
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ebx
mov ecx, dword [esp + 0x6c]
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ebp
lea ecx, [0x763290]
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], esi
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
lea ecx, [0x7631f0]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], eax
movzx eax, byte [esp + 0x22]
test al, 1
je 0x50931a
and eax, 0xfffffffe
mov byte [esp + 0x23], al
mov edx, dword [esp + 0x58]
mov eax, dword [edx]
call eax
add esp, 0x5c
ret
call fcn.004703c0
jmp fcn.00508d80