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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 4]
cmp eax, dword [ecx + 8]
jbe 0x50b087
sub esp, 0x84
mov eax, dword [esp + 0x9c]
test eax, eax
jne 0x50afad
mov eax, dword [esp + 0x94]
mov ecx, dword [eax + 0x10]
mov edx, dword [esp + 0x98]
mov dword [esp], edx
call ecx
movzx eax, byte [esp + 4]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov ebx, dword [esp + 0x9c]
test ebx, ebx
jne 0x50af97
test edx, edx
je 0x50ae7a
mov ebp, 0xa
mov esi, 0x2e
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x34], ebp
mov ebp, 0xa
mov dword [esp + 0x58], edx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x54], edi
mov dword [esp + 0x30], esi
mov byte [esp + 0x2f], al
mov dword [esp + 0x50], ebp
mov dword [esp], ebp
call fcn.0050a8a0
mov eax, dword [esp + 4]
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x38], ecx
mov edx, dword [esp + 0x9c]
mov ebx, dword [esp + 0x94]
mov ebp, dword [esp + 0x98]
mov esi, dword [esp + 0x90]
mov edi, dword [esp + 0x88]
mov dword [esp + 0x6c], eax
xor eax, eax
mov byte [esp + 0x2e], al
mov eax, dword [esp + 0x54]
mov dword [esp + 0x40], eax
mov dword [esp + 0x64], ecx
xor ecx, ecx
mov dword [esp + 0x3c], ecx
xor ecx, ecx
mov dword [esp + 0x8c], ecx
xor ecx, ecx
mov dword [esp + 0x44], ecx
mov ecx, 0xffffffff
mov dword [esp + 0x54], ecx
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x64]
jmp 0x50aacb
mov dword [esp + 0x78], edi
mov dword [esp + 0x90], esi
mov byte [esp + 0x2e], al
mov byte [esp + 0xa0], cl
mov edx, dword [ebx + 0x10]
mov dword [esp], ebp
call edx
movzx eax, byte [esp + 4]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov ebx, dword [esp + 0x9c]
mov ebp, dword [esp + 0x94]
mov esi, dword [esp + 0x98]
mov edi, dword [esp + 0x54]
mov ebx, ebp
mov ebp, esi
mov dword [esp + 0x58], edx
mov byte [esp + 0x2f], al
mov byte [esp + 0x5c], al
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x40], eax
mov edi, dword [esp + 0x78]
mov esi, dword [esp + 0x90]
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x9c]
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x74], edi
mov dword [esp + 0x90], esi
mov eax, dword [esp + 0x58]
test eax, eax
jne 0x50ac21
movzx eax, byte [esp + 0x2f]
cmp al, 0x2e
jne 0x50ae6d
movzx ecx, byte [esp + 0xa0]
test cl, cl
je 0x50ab2b
mov eax, dword [esp + 0x30]
cmp eax, 0x5f
sete al
movzx ecx, byte [esp + 0x2e]
or eax, ecx
xor ecx, ecx
mov ecx, 0x2e
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x54], ecx
xor ecx, ecx
jmp 0x50aa51
cmp al, 0x5f
jne 0x50ab60
test edx, edx
jne 0x50ab60
mov eax, dword [esp + 0x30]
cmp eax, 0x30
setne al
movzx edx, byte [esp + 0x2e]
or eax, edx
mov edx, 0x5f
mov edx, dword [esp + 0x40]
mov dword [esp + 0x4c], edx
mov edx, 0x5f
mov dword [esp + 0x30], edx
jmp 0x50aa51
cmp al, 0x30
jb 0x50ae21
cmp al, 0x39
ja 0x50ae21
add eax, 0xffffffd0
movzx eax, al
mov edx, dword [esp + 0x50]
cmp eax, edx
jae 0x50ac19
mov ebp, dword [esp + 0x44]
imul ebp, edx
add eax, ebp
mov ebp, dword [esp + 0x3c]
inc ebp
mov edx, dword [esp + 0x38]
cmp edx, ebp
je 0x50abbe
mov edx, dword [esp + 0x40]
inc edx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x44], eax
mov ebp, dword [esp + 0x98]
movzx eax, byte [esp + 0x2e]
mov edx, 0x30
jmp 0x50ab57
mov dword [esp], edi
mov ecx, dword [esp + 0x8c]
mov dword [esp + 4], ecx
mov dword [esp + 8], esi
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], esi
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
call fcn.00502830
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
movzx ecx, byte [esp + 0xa0]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x94]
xor ebp, ebp
mov dword [esp + 0x8c], eax
xor eax, eax
jmp 0x50ab9a
mov eax, dword [ebx + 0x14]
mov dword [esp], ebp
call eax
mov eax, dword [esp + 0x58]
cmp dword [0xc57c80], eax
je 0x50ade8
mov ecx, dword [esp + 0x78]
test eax, eax
je 0x50adb5
mov edx, dword [esp + 0x40]
test edx, edx
jne 0x50adaa
mov ebx, dword [esp + 0x34]
cmp ebx, 0x30
je 0x50ad5b
mov eax, dword [0xc57cec]
mov ecx, dword [0xc57ce8]
mov dword [esp + 0x78], eax
mov dword [esp + 0x58], ecx
mov ebx, dword [esp + 0x3c]
test ebx, ebx
jg 0x50acfc
mov ebx, dword [esp + 0x90]
mov ebp, dword [esp + 0x8c]
mov esi, dword [esp + 0x74]
mov dword [esp], esi
mov dword [esp + 4], ebp
mov dword [esp + 8], ebx
call fcn.00502030
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x54]
test ebx, ebx
jl 0x50acf6
mov ebp, dword [esp + 0x40]
sub ebx, ebp
mov dword [esp + 0xa4], edx
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], ebx
mov eax, dword [esp + 0x58]
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0xbc], eax
add esp, 0x84
ret
mov ebx, dword [esp + 0x40]
jmp 0x50acb2
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov dword [esp + 4], ebx
call fcn.0050a8f0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x74]
mov dword [esp], ecx
mov edx, dword [esp + 0x8c]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x90]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1c], eax
call fcn.00502830
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
jmp 0x50ac88
mov edx, dword [esp + 0x74]
mov dword [esp + 0xa4], edx
mov dword [esp + 0xa8], 0
mov edx, dword [esp + 0x90]
mov dword [esp + 0xac], edx
mov dword [esp + 0xb0], 0xa
mov dword [esp + 0xb4], 1
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], ecx
add esp, 0x84
ret
mov ebx, eax
mov eax, ecx
mov ecx, ebx
jmp 0x50ac62
movzx edx, byte [esp + 0x2e]
test dl, dl
je 0x50addc
mov edx, 1
test dl, dl
je 0x50ac3d
mov ecx, dword [0xc57ce4]
mov eax, dword [0xc57ce0]
jmp 0x50ac3d
mov ebx, dword [esp + 0x30]
cmp ebx, 0x5f
sete dl
jmp 0x50adc3
mov dword [esp], eax
mov ecx, dword [esp + 0x78]
mov dword [esp + 4], ecx
mov edx, dword [0xc57c84]
mov dword [esp + 8], edx
call fcn.00403030
movzx eax, byte [esp + 0xc]
test al, al
je 0x50ae14
xor ecx, ecx
xor eax, eax
jmp 0x50ac35
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x58]
jmp 0x50ac35
cmp al, 0x61
jb 0x50ae36
cmp al, 0x7a
ja 0x50ae36
add eax, 0xffffffa9
movzx eax, al
jmp 0x50ab78
cmp al, 0x41
jb 0x50ae63
cmp al, 0x5a
ja 0x50ae63
mov edx, dword [esp + 0x50]
cmp edx, 0x24
jg 0x50ae5b
add eax, 0xffffffc9
movzx eax, al
mov edx, dword [esp + 0x9c]
jmp 0x50ab78
add eax, 0xffffffe3
movzx eax, al
jmp 0x50ae4f
mov eax, 0x3f
jmp 0x50ab78
movzx ecx, byte [esp + 0xa0]
jmp 0x50ab2b
cmp al, 0x30
jne 0x50a9a9
mov eax, dword [esp + 0x94]
mov ecx, dword [eax + 0x10]
mov edx, dword [esp + 0x98]
mov dword [esp], edx
call ecx
movzx eax, byte [esp + 4]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
test edx, edx
je 0x50aecf
mov ebx, 0xa
mov ebp, 1
xor esi, esi
mov edi, ebp
mov dword [esp + 0x34], esi
mov ebp, ebx
mov esi, 0x30
mov ebx, dword [esp + 0x9c]
jmp 0x50a9c0
cmp al, 0x58
ja 0x50af82
cmp al, 0x42
jne 0x50af38
mov ebx, 0x62
mov ebp, 2
test ebx, ebx
je 0x50af31
cmp ebx, 0x30
jne 0x50aefc
xor esi, esi
mov edi, ebx
mov ebx, ebp
mov ebp, esi
mov esi, edi
jmp 0x50aeb6
mov dword [esp + 0x34], ebx
mov dword [esp + 0x54], ebp
mov eax, dword [esp + 0x94]
mov ecx, dword [eax + 0x10]
mov edx, dword [esp + 0x98]
mov dword [esp], edx
call ecx
movzx eax, byte [esp + 4]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x54]
jmp 0x50aef0
mov esi, 1
jmp 0x50aef2
cmp al, 0x4f
jne 0x50af49
mov ebx, 0x6f
mov ebp, 8
jmp 0x50aee7
cmp al, 0x58
jne 0x50af5a
mov ebx, 0x78
mov ebp, 0x10
jmp 0x50aee7
movzx ebx, byte [esp + 0xa0]
test bl, bl
je 0x50af76
xor ebp, ebp
mov esi, 0xa
mov ebx, ebp
mov ebp, esi
jmp 0x50aee7
mov ebp, 0x30
mov esi, 8
jmp 0x50af6d
cmp al, 0x62
je 0x50aedd
cmp al, 0x6f
je 0x50af3d
cmp al, 0x78
je 0x50af4e
jmp 0x50af5a
mov ebp, ebx
mov esi, 0x2e
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x34], ebp
mov ebp, ebx
jmp 0x50a9c0
movzx ecx, byte [esp + 0xa0]
test cl, cl
je 0x50aff1
xor edx, edx
test dl, dl
jne 0x50a96f
test cl, cl
je 0x50afed
cmp eax, 2
jne 0x50afdb
mov edx, 1
test dl, dl
jne 0x50a96f
jmp 0x50affe
cmp eax, 8
je 0x50afcc
cmp eax, 0xa
je 0x50afcc
cmp eax, 0x10
sete dl
jmp 0x50afd1
xor edx, edx
jmp 0x50afd1
cmp eax, 2
jl 0x50afb9
cmp eax, 0x3e
setle dl
jmp 0x50afbb
mov dword [esp], eax
call fcn.00408030
mov eax, dword [esp + 4]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
lea ecx, [0x843000]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], eax
lea eax, [0x8c8df3]
mov dword [esp], eax
mov dword [esp + 4], 0x16
lea eax, [esp + 0x7c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004c8f50
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00408100
mov eax, dword [esp + 8]
lea ecx, [0x843c00]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0042b540
nop
call fcn.004507b0
jmp fcn.0050a940