Function at 0x5138f0
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 0x513fac
sub esp, 0x84
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x8c]
cmp eax, ecx
jge 0x513f0d
jae 0x513fa5
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 0x513dcf
xor edi, edi
xor edi, edi
mov dword [esp + 0x48], edi
xor edi, edi
mov dword [esp + 0x38], esi
cmp eax, ecx
jge 0x513d3e
jae 0x513f9e
mov dword [esp + 0x34], edi
movzx edi, byte [edx + eax]
inc eax
xchg edi, eax
test al, 0x80
xchg edi, eax
je 0x513d34
test edi, 0x7f
je 0x513ca3
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 0x5139d8
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 0x513bc5
cmp eax, ecx
jge 0x513b38
jae 0x513f97
lea esi, [eax + 1]
mov dword [esp + 0x2c], esi
movzx eax, byte [edx + eax]
mov ebx, dword [esp + 0x30]
cmp ebx, 0x800000
jge 0x513aab
shl ebx, 8
or ebx, eax
test ebx, ebx
jne 0x5139bc
mov dword [esp + 0x28], ebx
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
lea eax, [0x7a1b3f]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], 0x23
lea eax, [0x7fed00]
mov dword [esp], eax
lea eax, [esp + 0x54]
mov dword [esp + 4], eax
call fcn.004076f0
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, [0x79796a]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 0x10
lea eax, [0x7fed00]
mov dword [esp], eax
lea eax, [esp + 0x5c]
mov dword [esp + 4], eax
call fcn.004076f0
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, [0x79bd9d]
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], 0x17
lea eax, [0x7fed20]
mov dword [esp], eax
lea eax, [esp + 0x64]
mov dword [esp + 4], eax
call fcn.004076f0
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 0x513c16
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, [0x798b6b]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], 0x12
lea eax, [0x7fed00]
mov dword [esp], eax
lea eax, [esp + 0x4c]
mov dword [esp + 4], eax
call fcn.004076f0
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, [0x7a0a43]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], 0x21
lea eax, [0x7fed20]
mov dword [esp], eax
lea eax, [esp + 0x6c]
mov dword [esp + 4], eax
call fcn.004076f0
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 0x513bd1
mov dword [esp + 0x30], eax
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
lea eax, [0x79bd9d]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], 0x17
lea eax, [0x7fed20]
mov dword [esp], eax
lea eax, [esp + 0x74]
mov dword [esp + 4], eax
call fcn.004076f0
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.00512d70
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
test ecx, ecx
jne 0x513ec8
cmp edx, 0x1f
jl 0x513e2d
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 0x513971
mov dword [esp + 0x38], edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
lea eax, [0x7970ba]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], 0xf
lea eax, [0x7fed20]
mov dword [esp], eax
lea eax, [esp + 0x7c]
mov dword [esp + 4], eax
call fcn.004076f0
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, [0x7436e0]
mov dword [esp], eax
call fcn.00409d00
mov edi, dword [esp + 4]
mov dword [edi + 4], 0x29
mov eax, dword [0xa8f2d0]
test eax, eax
jne 0x513f8a
lea eax, [0x7a3e25]
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, [0x7fe200]
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], edi
add esp, 0x84
ret
lea eax, [0x7a3e25]
call fcn.0044c9e0
jmp 0x513f38
call fcn.004266e0
ud2
call fcn.004266e0
ud2
call fcn.004266e0
ud2
call fcn.0044b280
jmp fcn.005138f0