Function at 0x51c300
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 0x51c9bc
sub esp, 0x84
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x8c]
cmp eax, ecx
jge 0x51c91d
jae 0x51c9b5
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 0x51c7df
xor edi, edi
xor edi, edi
mov dword [esp + 0x48], edi
xor edi, edi
mov dword [esp + 0x38], esi
cmp eax, ecx
jge 0x51c74e
jae 0x51c9ae
mov dword [esp + 0x34], edi
movzx edi, byte [edx + eax]
inc eax
xchg edi, eax
test al, 0x80
xchg edi, eax
je 0x51c744
test edi, 0x7f
je 0x51c6b3
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 0x51c3e8
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 0x51c5d5
cmp eax, ecx
jge 0x51c548
jae 0x51c9a7
lea esi, [eax + 1]
mov dword [esp + 0x2c], esi
movzx eax, byte [edx + eax]
mov ebx, dword [esp + 0x30]
cmp ebx, 0x800000
jge 0x51c4bb
shl ebx, 8
or ebx, eax
test ebx, ebx
jne 0x51c3cc
mov dword [esp + 0x28], ebx
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
lea eax, [0x7eb093]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], 0x23
lea eax, [0x8f93d0]
mov dword [esp], eax
lea eax, [esp + 0x54]
mov dword [esp + 4], eax
call fcn.004077b0
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, [0x7e08c8]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 0x10
lea eax, [0x8f93d0]
mov dword [esp], eax
lea eax, [esp + 0x5c]
mov dword [esp + 4], eax
call fcn.004077b0
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, [0x7e47fc]
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], 0x17
lea eax, [0x8f93f0]
mov dword [esp], eax
lea eax, [esp + 0x64]
mov dword [esp + 4], eax
call fcn.004077b0
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 0x51c626
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, [0x7e16eb]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], 0x12
lea eax, [0x8f93d0]
mov dword [esp], eax
lea eax, [esp + 0x4c]
mov dword [esp + 4], eax
call fcn.004077b0
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, [0x7e9cd0]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], 0x21
lea eax, [0x8f93f0]
mov dword [esp], eax
lea eax, [esp + 0x6c]
mov dword [esp + 4], eax
call fcn.004077b0
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 0x51c5e1
mov dword [esp + 0x30], eax
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
lea eax, [0x7e47fc]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], 0x17
lea eax, [0x8f93f0]
mov dword [esp], eax
lea eax, [esp + 0x74]
mov dword [esp + 4], eax
call fcn.004077b0
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.0051b780
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
test ecx, ecx
jne 0x51c8d8
cmp edx, 0x1f
jl 0x51c83d
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 0x51c381
mov dword [esp + 0x38], edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
lea eax, [0x7e01a6]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], 0xf
lea eax, [0x8f93f0]
mov dword [esp], eax
lea eax, [esp + 0x7c]
mov dword [esp + 4], eax
call fcn.004077b0
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, [0x787c00]
mov dword [esp], eax
call fcn.00409dc0
mov edi, dword [esp + 4]
mov dword [edi + 4], 0x29
mov eax, dword [0xbc7270]
test eax, eax
jne 0x51c99a
lea eax, [0x7ed70b]
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, [0x8f8790]
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], edi
add esp, 0x84
ret
lea eax, [0x7ed70b]
call fcn.0044cc20
jmp 0x51c948
call fcn.00426630
ud2
call fcn.00426630
ud2
call fcn.00426630
ud2
call fcn.0044b4c0
jmp fcn.0051c300