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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5099ab
sub esp, 0x5c
mov eax, dword [esp + 0x60]
mov ecx, dword [eax + 0x48]
mov edx, dword [eax + 0x44]
mov ebx, dword [eax + 0x40]
mov ebp, dword [esp + 0x64]
mov dword [esp], ebp
mov esi, dword [esp + 0x68]
mov dword [esp + 4], esi
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
lea ecx, [0xaae1e0]
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
mov edi, dword [esp + 0x70]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0
lea edi, [0x9cba94]
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], 4
mov dword [esp + 0x30], ebx
call fcn.004fd8a0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x64]
mov ebp, dword [esp + 0x70]
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x68]
mov dword [esp + 0x48], eax
xor eax, eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x48]
jmp 0x509813
mov eax, dword [esp + 0x60]
mov ecx, dword [eax + 0x48]
mov edx, dword [eax + 0x44]
mov eax, dword [eax + 0x40]
mov dword [esp], ebx
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
lea ecx, [0xaae1e0]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0
lea edx, [0x9cba94]
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], 4
mov dword [esp + 0x30], eax
call fcn.004fd8a0
mov eax, dword [esp + 0x40]
inc eax
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x64]
mov esi, dword [esp + 0x70]
mov edi, dword [esp + 0x6c]
mov ebp, esi
mov esi, edi
mov edi, dword [esp + 0x68]
mov dword [esp + 0x40], eax
mov eax, ecx
mov ecx, ebx
mov ebx, dword [esp + 0x64]
mov dword [esp + 0x54], edx
mov dword [esp + 0x50], eax
mov edx, dword [esp + 0x40]
cmp edx, 2
jge 0x5099a4
test esi, esi
je 0x50999a
mov edx, dword [esi + 0xc]
test edx, edx
sete dl
test dl, dl
jne 0x5098e1
xor edx, edx
test dl, dl
je 0x50986b
test ecx, ecx
jne 0x509785
mov dword [esp], eax
call fcn.004f3000
mov ebx, dword [esp + 0x64]
mov ebp, dword [esp + 0x70]
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x68]
jmp 0x509785
test ecx, ecx
jne 0x5098c9
lea eax, [0x94aee0]
mov dword [esp], eax
call fcn.0040af00
mov edi, dword [esp + 4]
mov dword [esp + 0x58], edi
mov eax, dword [0xe8ff30]
test eax, eax
jne 0x5098be
mov eax, dword [esp + 0x50]
mov dword [edi], eax
mov dword [esp], eax
mov byte [esp + 4], 1
call fcn.00509d20
mov eax, dword [esp + 0x58]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
add esp, 0x5c
ret
mov eax, dword [esp + 0x50]
call fcn.00456ab0
jmp 0x509895
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], ecx
mov eax, dword [esp + 0x54]
mov dword [esp + 0x7c], eax
add esp, 0x5c
ret
mov dword [esp + 0x44], ecx
mov dword [esp], eax
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x54]
mov dword [esp + 8], edx
call fcn.005099c0
movzx eax, byte [esp + 0xc]
test al, al
je 0x509926
mov eax, 1
mov ecx, dword [esp + 0x44]
mov ebx, dword [esp + 0x64]
mov ebp, dword [esp + 0x70]
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x68]
mov edx, eax
mov eax, dword [esp + 0x50]
jmp 0x509842
lea eax, [0xaa52d0]
mov ecx, dword [esp + 0x44]
cmp eax, ecx
jne 0x509993
mov edx, dword [esp + 0x54]
jne 0x50998b
mov ebx, dword [edx + 0x20]
mov edx, dword [edx + 0x24]
lea ebp, [0xaa57b0]
cmp ebp, ebx
jne 0x509982
mov esi, edx
jne 0x50997c
mov ebx, dword [edx + 0xc]
mov edx, dword [edx + 8]
test edx, edx
je 0x509974
lea esi, [0x9792a0]
cmp dword [edx + 4], esi
jne 0x509970
cmp dword [ebx], 0x20000003
sete dl
mov eax, edx
jmp 0x509907
xor edx, edx
jmp 0x50996c
lea esi, [0x9792a0]
jmp 0x509970
mov edx, ebx
mov ebx, esi
jmp 0x509954
mov esi, edx
mov edx, 0
jmp 0x50994c
mov edx, dword [esp + 0x54]
mov ebx, ecx
jmp 0x509940
mov edx, 0
jmp 0x509938
mov edx, 1
jmp 0x509838
xor edx, edx
jmp 0x509842
call fcn.00455270
jmp fcn.005096d0