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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x516c0d
sub esp, 0x5c
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x64]
cmp eax, ecx
jge 0x516b7f
jae 0x516c06
mov edx, dword [esp + 0x60]
movzx ebx, byte [edx + eax]
mov ebp, ebx
and ebx, 0x20
cmp bl, 0x20
sete bl
mov byte [esp + 0x23], bl
inc eax
mov esi, ebp
xchg ebp, eax
shr al, 6
xchg ebp, eax
xchg ebp, eax
movzx eax, al
xchg ebp, eax
mov dword [esp + 0x3c], ebp
and esi, 0x1f
cmp esi, 0x1f
je 0x516a6e
xor edi, edi
xor edi, edi
mov dword [esp + 0x48], edi
xor edi, edi
mov dword [esp + 0x38], esi
cmp eax, ecx
jge 0x5169ec
jae 0x516bff
mov dword [esp + 0x34], edi
movzx edi, byte [edx + eax]
inc eax
xchg edi, eax
test al, 0x80
xchg edi, eax
je 0x5169e2
and edi, 0x7f
test edi, edi
je 0x516960
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 0x5166e0
lea eax, [ebx + 1]
movzx ebx, byte [esp + 0x23]
mov esi, dword [esp + 0x38]
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], ebp
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0x2c], eax
mov ebx, dword [esp + 0x24]
cmp ebx, edi
jge 0x5168a0
cmp eax, ecx
jge 0x516822
jae 0x516bf8
lea esi, [eax + 1]
mov dword [esp + 0x2c], esi
movzx eax, byte [edx + eax]
mov ebp, dword [esp + 0x30]
cmp ebp, 0x800000
jge 0x5167a4
shl ebp, 8
or ebp, eax
test ebp, ebp
jne 0x5166c4
mov dword [esp + 0x28], ebp
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
lea eax, [0x5cf8e3]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], 0x23
lea eax, [0x6011c0]
mov dword [esp], eax
lea eax, [esp + 0x4c]
mov dword [esp + 4], eax
call fcn.00407740
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x78], edx
movzx edx, byte [esp + 0x23]
mov byte [esp + 0x7c], dl
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], ecx
add esp, 0x5c
ret
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
lea eax, [0x5c8f4f]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], 0x10
lea eax, [0x6011c0]
mov dword [esp], eax
lea eax, [esp + 0x4c]
mov dword [esp + 4], eax
call fcn.00407740
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x78], edx
movzx edx, byte [esp + 0x23]
mov byte [esp + 0x7c], dl
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], ecx
add esp, 0x5c
ret
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
lea eax, [0x5cbab5]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], 0x17
lea eax, [0x6011e0]
mov dword [esp], eax
lea eax, [esp + 0x54]
mov dword [esp + 4], eax
call fcn.00407740
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x78], edx
movzx edx, byte [esp + 0x23]
mov byte [esp + 0x7c], dl
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], eax
add esp, 0x5c
ret
mov ecx, dword [esp + 0x30]
cmp ecx, 0x80
jl 0x5168e2
mov dword [esp + 0x70], ebp
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], ecx
movzx ecx, byte [esp + 0x23]
mov byte [esp + 0x7c], cl
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x88], eax
add esp, 0x5c
ret
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
lea eax, [0x5c98b5]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], 0x12
lea eax, [0x6011c0]
mov dword [esp], eax
lea eax, [esp + 0x4c]
mov dword [esp + 4], eax
call fcn.00407740
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x78], edx
movzx edx, byte [esp + 0x23]
mov byte [esp + 0x7c], dl
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], ecx
add esp, 0x5c
ret
mov dword [esp + 0x30], eax
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
lea eax, [0x5cedbd]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], 0x21
lea eax, [0x6011e0]
mov dword [esp], eax
lea eax, [esp + 0x54]
mov dword [esp + 4], eax
call fcn.00407740
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], 0
movzx edx, byte [esp + 0x23]
mov byte [esp + 0x7c], dl
mov edx, dword [esp + 0x30]
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], ecx
add esp, 0x5c
ret
and edi, 0x7f
mov ecx, edi
jmp 0x5168ac
mov dword [esp + 0x30], eax
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
lea eax, [0x5cbab5]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], 0x17
lea eax, [0x6011e0]
mov dword [esp], eax
lea eax, [esp + 0x54]
mov dword [esp + 4], eax
call fcn.00407740
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], 0
movzx edx, byte [esp + 0x23]
mov byte [esp + 0x7c], dl
mov edx, dword [esp + 0x30]
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], eax
add esp, 0x5c
ret
mov dword [esp], edx
mov dword [esp + 4], ecx
mov ebx, dword [esp + 0x68]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
call fcn.00515ab0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
test ecx, ecx
jne 0x516b49
cmp edx, 0x1f
jl 0x516ac3
mov ebp, dword [esp + 0x3c]
mov esi, edx
mov edi, ecx
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
mov eax, ebx
movzx ebx, byte [esp + 0x23]
jmp 0x51667d
mov dword [esp + 0x38], edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
lea eax, [0x5c8b3c]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], 0xf
lea eax, [0x6011e0]
mov dword [esp], eax
lea eax, [esp + 0x54]
mov dword [esp + 4], eax
call fcn.00407740
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], 0
movzx edx, byte [esp + 0x23]
mov byte [esp + 0x7c], dl
mov edx, dword [esp + 0x30]
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], eax
add esp, 0x5c
ret
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0x70], ebp
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], 0
movzx edx, byte [esp + 0x23]
mov byte [esp + 0x7c], dl
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], eax
add esp, 0x5c
ret
nop
lea eax, [0x59e6a0]
mov dword [esp], eax
call fcn.00409bc0
mov edi, dword [esp + 4]
mov dword [edi + 4], 0x29
mov eax, dword [0x738420]
test eax, eax
jne 0x516beb
lea eax, [0x5d0c12]
mov dword [edi], eax
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov byte [esp + 0x7c], 0
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x80], eax
lea eax, [0x600de0]
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], edi
add esp, 0x5c
ret
lea eax, [0x5d0c12]
call fcn.0044cea0
jmp 0x516bab
call fcn.00427000
ud2
call fcn.00427000
ud2
call fcn.00427000
ud2
call fcn.0044b750
jmp fcn.00516610