Function at 0x50e940
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 0x50effc
sub esp, 0x84
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x8c]
cmp eax, ecx
jge 0x50ef5d
jae 0x50eff5
mov edx, dword [esp + 0x88]
movzx ebx, byte [edx + eax]
inc eax
mov ebp, ebx
shr bl, 6
movzx ebx, bl
mov dword [esp + 0x3c], ebx
mov esi, ebp
and ebp, 0x20
xchg ebp, eax
cmp al, 0x20
xchg ebp, eax
xchg ebp, ebx
sete bl
xchg ebp, ebx
xchg ebp, eax
mov byte [esp + 0x23], al
xchg ebp, eax
and esi, 0x1f
cmp esi, 0x1f
je 0x50ee1f
xor edi, edi
xor edi, edi
mov dword [esp + 0x48], edi
xor edi, edi
mov dword [esp + 0x38], esi
cmp eax, ecx
jge 0x50ed8e
jae 0x50efee
mov dword [esp + 0x34], edi
movzx edi, byte [edx + eax]
inc eax
xchg edi, eax
test al, 0x80
xchg edi, eax
je 0x50ed84
test edi, 0x7f
je 0x50ecf3
and edi, 0x7f
mov dword [esp + 0x40], eax
xor eax, eax
mov dword [esp + 0x24], eax
xor eax, eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x40]
jmp 0x50ea28
lea eax, [ebp + 1]
movzx ebp, byte [esp + 0x23]
mov esi, dword [esp + 0x38]
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], ebx
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x2c], eax
mov ebp, dword [esp + 0x24]
cmp ebp, edi
jge 0x50ec15
cmp eax, ecx
jge 0x50eb88
jae 0x50efe7
lea esi, [eax + 1]
mov dword [esp + 0x2c], esi
movzx eax, byte [edx + eax]
mov ebx, dword [esp + 0x30]
cmp ebx, 0x800000
jge 0x50eafb
shl ebx, 8
or ebx, eax
test ebx, ebx
jne 0x50ea0c
mov dword [esp + 0x28], ebx
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
lea eax, [0x845fb3]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], 0x23
lea eax, [0x8b3690]
mov dword [esp], eax
lea eax, [esp + 0x54]
mov dword [esp + 4], eax
call fcn.00407630
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x98], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x9c], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0xa0], edx
movzx edx, byte [esp + 0x23]
mov byte [esp + 0xa4], dl
mov edx, dword [esp + 0x2c]
mov dword [esp + 0xa8], edx
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb0], eax
add esp, 0x84
ret
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
lea eax, [0x83b0a4]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 0x10
lea eax, [0x8b3690]
mov dword [esp], eax
lea eax, [esp + 0x5c]
mov dword [esp + 4], eax
call fcn.00407630
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x98], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x9c], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0xa0], edx
movzx edx, byte [esp + 0x23]
mov byte [esp + 0xa4], dl
mov edx, dword [esp + 0x2c]
mov dword [esp + 0xa8], edx
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], ecx
add esp, 0x84
ret
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
lea eax, [0x83f5e2]
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], 0x17
lea eax, [0x8b36b0]
mov dword [esp], eax
lea eax, [esp + 0x64]
mov dword [esp + 4], eax
call fcn.00407630
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x98], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x9c], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0xa0], edx
movzx edx, byte [esp + 0x23]
mov byte [esp + 0xa4], dl
mov edx, dword [esp + 0x2c]
mov dword [esp + 0xa8], edx
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], ecx
add esp, 0x84
ret
mov ecx, dword [esp + 0x30]
cmp ecx, 0x80
jl 0x50ec66
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], esi
mov dword [esp + 0xa0], ecx
movzx ecx, byte [esp + 0x23]
mov byte [esp + 0xa4], cl
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0xb0], eax
add esp, 0x84
ret
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
lea eax, [0x83c374]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], 0x12
lea eax, [0x8b3690]
mov dword [esp], eax
lea eax, [esp + 0x4c]
mov dword [esp + 4], eax
call fcn.00407630
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x98], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x9c], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0xa0], edx
movzx edx, byte [esp + 0x23]
mov byte [esp + 0xa4], dl
mov edx, dword [esp + 0x2c]
mov dword [esp + 0xa8], edx
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], ecx
add esp, 0x84
ret
mov dword [esp + 0x30], eax
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
lea eax, [0x844afd]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], 0x21
lea eax, [0x8b36b0]
mov dword [esp], eax
lea eax, [esp + 0x6c]
mov dword [esp + 4], eax
call fcn.00407630
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x98], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x9c], edx
mov dword [esp + 0xa0], 0
movzx edx, byte [esp + 0x23]
mov byte [esp + 0xa4], dl
mov edx, dword [esp + 0x30]
mov dword [esp + 0xa8], edx
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb0], eax
add esp, 0x84
ret
and edi, 0x7f
mov ecx, edi
jmp 0x50ec21
mov dword [esp + 0x30], eax
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
lea eax, [0x83f5e2]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], 0x17
lea eax, [0x8b36b0]
mov dword [esp], eax
lea eax, [esp + 0x74]
mov dword [esp + 4], eax
call fcn.00407630
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x98], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x9c], edx
mov dword [esp + 0xa0], 0
movzx edx, byte [esp + 0x23]
mov byte [esp + 0xa4], dl
mov edx, dword [esp + 0x30]
mov dword [esp + 0xa8], edx
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb0], eax
add esp, 0x84
ret
mov dword [esp], edx
mov dword [esp + 4], ecx
mov ebx, dword [esp + 0x90]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
call fcn.0050ddc0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
test ecx, ecx
jne 0x50ef18
cmp edx, 0x1f
jl 0x50ee7d
movzx ebp, byte [esp + 0x23]
mov esi, edx
mov edi, ecx
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x88]
mov eax, ebx
mov ebx, dword [esp + 0x3c]
jmp 0x50e9c1
mov dword [esp + 0x38], edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
lea eax, [0x83a761]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], 0xf
lea eax, [0x8b36b0]
mov dword [esp], eax
lea eax, [esp + 0x7c]
mov dword [esp + 4], eax
call fcn.00407630
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x98], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x9c], edx
mov dword [esp + 0xa0], 0
movzx edx, byte [esp + 0x23]
mov byte [esp + 0xa4], dl
mov edx, dword [esp + 0x30]
mov dword [esp + 0xa8], edx
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], ecx
add esp, 0x84
ret
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0x98], ebp
mov dword [esp + 0x9c], edx
mov dword [esp + 0xa0], 0
movzx edx, byte [esp + 0x23]
mov byte [esp + 0xa4], dl
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb0], eax
add esp, 0x84
ret
lea eax, [0x7d00e0]
mov dword [esp], eax
call fcn.00409c40
mov edi, dword [esp + 4]
mov dword [edi + 4], 0x29
mov eax, dword [0xb92b90]
test eax, eax
jne 0x50efda
lea eax, [0x848a41]
mov dword [edi], eax
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov byte [esp + 0xa4], 0
mov eax, dword [esp + 0x94]
mov dword [esp + 0xa8], eax
lea eax, [0x8b2890]
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], edi
add esp, 0x84
ret
lea eax, [0x848a41]
call fcn.0044c990
jmp 0x50ef88
call fcn.004264e0
ud2
call fcn.004264e0
ud2
call fcn.004264e0
ud2
call fcn.0044b230
jmp fcn.0050e940