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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5826b5
sub esp, 0x68
mov eax, dword [esp + 0x70]
cmp eax, 1
jge 0x5820f6
xor ecx, ecx
jmp 0x58211f
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
lea ecx, [0x8948f8]
mov dword [esp + 4], ecx
mov dword [esp + 8], 1
call fcn.00402870
movzx eax, byte [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x70]
test cl, cl
jne 0x5821b1
mov ecx, dword [esp + 0x6c]
mov dword [esp], ecx
mov dword [esp + 4], eax
lea edx, [0x8936ac]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
call fcn.0051d680
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x5824d2
mov ecx, dword [esp + 0x70]
mov edx, ecx
sub ecx, eax
mov ebx, ecx
neg ecx
sar ecx, 0x1f
and ecx, eax
mov eax, dword [esp + 0x6c]
add ecx, eax
test ebx, ebx
je 0x5821a7
cmp byte [ecx], 0x3a
jne 0x5821a0
mov dword [esp + 0x40], ebx
mov dword [esp + 0x54], ecx
lea ebp, [ebx - 1]
mov dword [esp + 0x3c], ebp
mov esi, ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, 1
add ebp, ecx
mov dword [esp + 0x5c], ebp
xor edi, edi
jmp 0x582659
xor ebp, ebp
jmp 0x5825c8
mov ebp, 1
jmp 0x5825c8
mov ecx, dword [esp + 0x6c]
mov dword [esp], ecx
mov dword [esp + 4], eax
lea edx, [0x89376c]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
call fcn.0051d680
mov eax, dword [esp + 0x10]
test eax, eax
jl 0x582249
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x70]
mov edx, ecx
sub ecx, eax
mov dword [esp + 0x40], ecx
lea ebx, [ecx - 1]
mov ebp, ebx
neg ebx
sar ebx, 0x1f
lea esi, [eax + 1]
and esi, ebx
mov ebx, dword [esp + 0x6c]
add esi, ebx
cmp ecx, 1
je 0x582242
cmp byte [esi], 0x3a
jne 0x58223e
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x58], esi
lea edi, [ecx - 2]
mov dword [esp + 0x38], edi
xchg edi, ebx
neg ebx
xchg edi, ebx
sar edi, 0x1f
and edi, 1
add edi, esi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x44], eax
xor eax, eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x44]
jmp 0x582554
xor edi, edi
jmp 0x58228f
mov edi, 1
jmp 0x58228f
lea eax, [0x687ca0]
mov dword [esp], eax
call fcn.0040af90
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x13
lea ecx, [0x6bca49]
mov dword [eax], ecx
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
lea ecx, [0x8953a4]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], eax
add esp, 0x68
ret
xchg edi, eax
test al, al
xchg edi, eax
je 0x58244f
mov dword [esp], ebx
mov dword [esp + 4], eax
lea ecx, [0x6b6e3d]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 3
call fcn.0051fc10
mov eax, dword [esp + 0x10]
test eax, eax
jl 0x5824d2
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x6c]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 3
call fcn.00580740
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
test edx, edx
jne 0x582430
mov dword [esp + 0x30], ecx
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
sub eax, ecx
mov ebx, eax
neg eax
sar eax, 0x1f
and eax, ecx
mov ecx, dword [esp + 0x6c]
add eax, ecx
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], 4
call fcn.00580740
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
test edx, edx
jne 0x582411
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x40]
mov ecx, eax
neg eax
sar eax, 0x1f
mov edx, dword [esp + 0x28]
and eax, edx
mov edx, dword [esp + 0x6c]
add eax, edx
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], 3
call fcn.00580740
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
test edx, edx
je 0x5823b6
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebp
add esp, 0x68
ret
mov dword [esp], 0
mov edx, dword [esp + 0x50]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
call fcn.0044b070
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
add esp, 0x68
ret
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebp
add esp, 0x68
ret
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebp
add esp, 0x68
ret
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp], esi
mov dword [esp + 4], ebp
call fcn.00408970
mov eax, dword [esp + 8]
lea ecx, [0x67e720]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
lea eax, [0x6c082b]
mov dword [esp], eax
mov dword [esp + 4], 0x1a
lea eax, [esp + 0x60]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.00511cc0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ecx
add esp, 0x68
ret
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 4], eax
mov dword [esp + 8], 3
call fcn.00580740
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0xc]
mov ebp, dword [esp + 0x10]
test eax, eax
je 0x582525
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], edx
add esp, 0x68
ret
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebp
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
add esp, 0x68
ret
mov edx, dword [esp + 0x70]
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x40]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
cmp ecx, edx
jge 0x5825b6
movzx ebp, byte [ecx + edi]
cmp ebp, 0x80
jge 0x58256f
inc ecx
jmp 0x58259b
mov dword [esp], edi
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.004586c0
mov ebp, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x6c]
mov esi, dword [esp + 0x58]
mov edi, dword [esp + 0x5c]
add ebp, 0xffffffd0
cmp ebp, 9
jbe 0x582544
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x70]
mov ebp, dword [esp + 0x3c]
xor edi, edi
jmp 0x58228f
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x70]
mov edi, 1
jmp 0x58228f
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x5824d2
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp], ecx
mov dword [esp + 4], ebx
call fcn.00408970
mov eax, dword [esp + 8]
lea ecx, [0x67e720]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
lea eax, [0x6c082b]
mov dword [esp], eax
mov dword [esp + 4], 0x1a
lea eax, [esp + 0x60]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.00511cc0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ecx
add esp, 0x68
ret
mov ebx, dword [esp + 0x40]
cmp edi, esi
jge 0x5826ab
movzx ebx, byte [edi + ebp]
cmp ebx, 0x80
jge 0x58266c
inc edi
jmp 0x582698
mov dword [esp], ebp
mov dword [esp + 4], esi
mov dword [esp + 8], edi
call fcn.004586c0
mov ebx, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x70]
mov ebp, dword [esp + 0x5c]
mov esi, dword [esp + 0x3c]
add ebx, 0xffffffd0
cmp ebx, 9
jbe 0x582655
mov ebx, dword [esp + 0x40]
xor ebp, ebp
jmp 0x5825c8
mov ebp, 1
jmp 0x5825c8
call fcn.0045e260
jmp fcn.005820d0