Function at 0x526370
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
mov ebp, ecx
push esi
push ebx
sub esp, 0x4c
mov edi, dword [esp + 0x60]
mov eax, dword [esp + 0x68]
mov ebx, dword [edi + 0x10]
cmp ebx, dword [edi + 0xc]
mov dword [esp + 0x20], eax
jb 0x526690
cmp byte [edi + 0x1c], 0
je 0x526704
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], 0
mov esi, ebx
mov dword [esp + 0x1c], ebp
jmp 0x5263d8
add esi, 1
mov dword [edi + 0x10], esi
mov esi, dword [esp + 0x38]
mov edx, dword [esi + 0xc]
mov ebp, dword [esi + 0x10]
lea eax, [edx + 1]
cmp eax, ebp
ja 0x5266a0
mov dword [esi + 0xc], eax
mov byte [edx], bl
add dword [esp + 0x3c], 1
mov esi, dword [edi + 0x10]
movzx ebx, byte [esi]
cmp bl, 0x5c
je 0x526450
cmp bl, 0x22
je 0x5264e0
movsx eax, bl
cmp eax, 0x1f
jbe 0x526660
cmp dword [edi + 0xc], esi
ja 0x5263b0
cmp byte [edi + 0x1c], 0
jne 0x5263b6
mov eax, dword [edi + 0x14]
add dword [edi + 0x18], eax
mov eax, dword [edi]
mov dword [esp + 0xc], eax
mov eax, dword [edi + 8]
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov eax, dword [edi + 4]
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov edx, dword [edi + 4]
cmp eax, dword [edi + 8]
mov dword [edi + 0x14], eax
lea ecx, [edx + eax - 1]
mov dword [edi + 0x10], edx
mov dword [edi + 0xc], ecx
jae 0x5263b6
mov byte [edx + eax], 0
mov byte [edi + 0x1c], 1
add dword [edi + 0xc], 1
jmp 0x5263b6
mov ebp, dword [edi + 0xc]
mov eax, dword [edi + 4]
mov ebx, dword [edi + 0x18]
cmp ebp, esi
mov dword [esp + 0x24], eax
ja 0x526542
cmp byte [edi + 0x1c], 0
mov ecx, 0x5c
je 0x526760
cmp byte [edi + 0x1c], 0
jne 0x52656a
mov eax, dword [edi + 0x14]
add dword [edi + 0x18], eax
mov eax, dword [edi]
mov byte [esp + 0x24], cl
mov dword [esp + 0xc], eax
mov eax, dword [edi + 8]
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov eax, dword [edi + 4]
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov edx, dword [edi + 4]
cmp eax, dword [edi + 8]
mov dword [edi + 0x14], eax
movzx ecx, byte [esp + 0x24]
lea ebx, [edx + eax - 1]
mov dword [edi + 0x10], edx
mov dword [edi + 0xc], ebx
jae 0x52656a
mov byte [edx + eax], 0
mov byte [edi + 0x1c], 1
add dword [edi + 0xc], 1
jmp 0x52656a
cmp dword [edi + 0xc], esi
mov ebx, esi
mov ebp, dword [esp + 0x1c]
ja 0x526590
cmp byte [edi + 0x1c], 0
jne 0x526596
mov eax, dword [edi + 0x14]
add dword [edi + 0x18], eax
mov eax, dword [edi]
mov dword [esp + 0xc], eax
mov eax, dword [edi + 8]
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov eax, dword [edi + 4]
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov edx, dword [edi + 4]
cmp eax, dword [edi + 8]
mov dword [edi + 0x14], eax
lea ecx, [edx + eax - 1]
mov dword [edi + 0x10], edx
mov dword [edi + 0xc], ecx
jae 0x526596
mov byte [edx + eax], 0
mov byte [edi + 0x1c], 1
add dword [edi + 0xc], 1
jmp 0x526596
lea edx, [esi + 1]
mov dword [edi + 0x10], edx
movzx ecx, byte [edx]
mov eax, ecx
movzx ecx, byte [ecx + 0x54f5e0]
test cl, cl
je 0x5268c1
cmp edx, ebp
jae 0x526474
add edx, 1
mov dword [edi + 0x10], edx
mov ebx, dword [esp + 0x38]
mov edx, dword [ebx + 0xc]
mov eax, dword [ebx + 0x10]
lea esi, [edx + 1]
cmp esi, eax
ja 0x526947
mov dword [ebx + 0xc], esi
mov byte [edx], cl
add dword [esp + 0x3c], 1
jmp 0x5263d5
add ebx, 1
mov dword [edi + 0x10], ebx
mov ebx, dword [esp + 0x38]
mov edx, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x10]
lea eax, [edx + 1]
cmp eax, ecx
ja 0x526900
mov dword [ebx + 0xc], eax
mov byte [edx], 0
mov esi, dword [esp + 0x3c]
mov ebx, dword [ebp + 0x18]
lea eax, [esi + 1]
test ebx, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x3c], eax
jne 0x52664c
mov eax, dword [esp + 0x38]
mov ebx, esi
not ebx
add ebx, dword [eax + 0xc]
mov dword [eax + 0xc], ebx
mov eax, dword [esp + 0x64]
mov edi, dword [eax + 0x24]
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x28]
lea edx, [edi + 0x10]
cmp edx, eax
ja 0x526865
mov eax, dword [esp + 0x64]
test edi, edi
mov dword [eax + 0x24], edx
je 0x52664c
cmp esi, 0xd
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
ja 0x5267e0
mov eax, 0x1c05
mov ecx, esi
mov ebp, edi
mov word [edi + 0xe], ax
mov eax, 0xd
sub eax, ecx
mov byte [edi + 0xd], al
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], ebp
call sub.msvcrt.dll_memcpy
mov byte [ebp + esi], 0
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov edx, ebx
mov ebx, esi
sub ebx, dword [edi + 4]
add ebx, dword [edi + 0x18]
test dl, dl
mov ebp, dword [esp + 0x1c]
jne 0x5266f0
mov dword [ebp + 0x18], 0xb
mov dword [ebp + 0x1c], ebx
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
add ebx, 1
mov dword [edi + 0x10], ebx
jmp 0x52639b
mov eax, dword [esi + 8]
test eax, eax
je 0x526830
sub ebp, eax
lea ecx, [ebp + 1]
shr ecx, 1
add ecx, ebp
sub edx, eax
mov ebp, edx
lea edx, [edx + 1]
cmp edx, ecx
cmovae ecx, edx
test ecx, ecx
je 0x5267c0
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [esp + 0x24], ecx
call sub.msvcrt.dll_realloc
mov ecx, dword [esp + 0x24]
lea edx, [eax + ebp]
mov dword [esi + 8], eax
add eax, ecx
mov dword [esi + 0x10], eax
lea eax, [edx + 1]
jmp 0x5263cb
mov dword [ebp + 0x18], 0xa
mov dword [ebp + 0x1c], ebx
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov eax, dword [edi + 0x14]
add dword [edi + 0x18], eax
mov eax, dword [edi]
mov dword [esp + 0xc], eax
mov eax, dword [edi + 8]
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov eax, dword [edi + 4]
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov ebx, dword [edi + 4]
cmp eax, dword [edi + 8]
mov dword [edi + 0x14], eax
lea edx, [ebx + eax - 1]
mov dword [edi + 0x10], ebx
mov dword [edi + 0xc], edx
jae 0x52639b
mov byte [ebx + eax], 0
mov byte [edi + 0x1c], 1
add dword [edi + 0xc], 1
mov ebx, dword [edi + 0x10]
jmp 0x52639b
mov eax, dword [edi + 0x14]
add eax, ebx
mov dword [edi + 0x18], eax
mov eax, dword [edi]
mov dword [esp + 0xc], eax
mov eax, dword [edi + 8]
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov edx, dword [edi + 4]
cmp eax, dword [edi + 8]
mov dword [edi + 0x14], eax
lea ebp, [edx + eax - 1]
mov dword [edi + 0x10], edx
mov dword [edi + 0xc], ebp
jae 0x526548
mov byte [edx + eax], 0
mov eax, dword [edi + 0xc]
mov byte [edi + 0x1c], 1
mov edx, dword [edi + 0x10]
lea ebp, [eax + 1]
mov dword [edi + 0xc], ebp
jmp 0x526548
mov dword [esp], eax
mov dword [esp + 0x24], ecx
call sub.msvcrt.dll_free
xor eax, eax
mov ecx, dword [esp + 0x24]
jmp 0x5266dc
mov edx, 0xc05
mov dword [edi], esi
mov word [edi + 0xe], dx
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x526861
mov edx, dword [ecx]
lea ebp, [esi + 4]
and ebp, 0xfffffffc
test edx, edx
mov dword [esp + 0x1c], edx
je 0x526842
mov eax, dword [edx + 4]
mov dword [esp + 0x20], eax
add eax, ebp
cmp eax, dword [edx]
ja 0x526842
mov edx, dword [esp + 0x20]
add edx, 0xc
mov ecx, dword [esp + 0x1c]
lea ebp, [ecx + edx]
mov dword [ecx + 4], eax
mov dword [edi + 8], ebp
jmp 0x526637
mov ecx, dword [esi]
test ecx, ecx
je 0x526be4
mov ecx, dword [esi + 0x14]
jmp 0x5266b4
mov eax, dword [ecx + 0xc]
cmp dword [ecx + 4], ebp
mov edx, ebp
cmovae edx, dword [ecx + 4]
test eax, eax
je 0x526c00
mov eax, edx
add eax, 0xc
jne 0x5269b7
xor ebp, ebp
jmp 0x526821
mov edx, dword [esp + 0x64]
mov ebp, dword [edx + 0x20]
test ebp, ebp
je 0x526b44
sub eax, ebp
lea edx, [eax + 1]
shr edx, 1
add edx, eax
sub edi, ebp
mov dword [esp + 0x24], ecx
lea eax, [edi + 0x10]
cmp eax, edx
cmovae edx, eax
test edx, edx
je 0x52699c
mov dword [esp + 4], edx
mov dword [esp], ebp
mov dword [esp + 0x20], edx
call sub.msvcrt.dll_realloc
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov ebp, dword [esp + 0x64]
add edi, eax
mov dword [ebp + 0x20], eax
add eax, edx
lea edx, [edi + 0x10]
mov dword [ebp + 0x28], eax
jmp 0x5265f1
sub esi, dword [esp + 0x24]
cmp al, 0x75
lea ecx, [esi + ebx]
mov dword [esp + 0x28], ecx
jne 0x526e25
cmp edx, ebp
jb 0x5269f7
cmp byte [edi + 0x1c], 0
je 0x526c3f
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
mov dword [ebp + 0x18], 8
mov dword [ebp + 0x1c], eax
jmp 0x52664c
mov eax, dword [ebx + 8]
test eax, eax
je 0x526b32
sub ecx, eax
lea edi, [ecx + 1]
shr edi, 1
add ecx, edi
sub edx, eax
lea edi, [edx + 1]
mov esi, edx
cmp edi, ecx
cmovb edi, ecx
test edi, edi
je 0x526b7e
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.msvcrt.dll_realloc
lea edx, [eax + esi]
mov dword [ebx + 8], eax
add eax, edi
mov dword [ebx + 0x10], eax
lea eax, [edx + 1]
jmp 0x5265ab
mov ebp, dword [ebx + 8]
test ebp, ebp
je 0x526b20
sub eax, ebp
lea esi, [eax + 1]
shr esi, 1
add eax, esi
sub edx, ebp
mov byte [esp + 0x28], cl
lea esi, [edx + 1]
mov dword [esp + 0x24], edx
cmp esi, eax
cmovb esi, eax
test esi, esi
je 0x526b8d
mov dword [esp + 4], esi
mov dword [esp], ebp
call sub.msvcrt.dll_realloc
movzx ecx, byte [esp + 0x28]
mov edx, dword [esp + 0x24]
add edx, eax
mov dword [ebx + 8], eax
add eax, esi
mov dword [ebx + 0x10], eax
lea esi, [edx + 1]
jmp 0x52657f
mov dword [esp], ebp
mov dword [esp + 0x20], edx
call sub.msvcrt.dll_free
xor eax, eax
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
jmp 0x5268ab
mov dword [esp], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], edx
call sub.msvcrt.dll_malloc
test eax, eax
mov dword [esp + 0x1c], eax
je 0x526861
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [eax + 4], 0
mov dword [eax], edx
mov edx, dword [ecx]
mov dword [eax + 8], edx
mov dword [ecx], eax
mov edx, 0xc
mov eax, ebp
jmp 0x526817
add edx, 1
mov dword [edi + 0x10], edx
movsx esi, byte [edx]
lea ecx, [esi - 0x30]
mov eax, esi
lea ebx, [esi - 0x30]
cmp cl, 9
ja 0x526e11
cmp edx, ebp
jb 0x526b73
cmp byte [edi + 0x1c], 0
je 0x526d54
mov edx, dword [edi + 0x10]
movsx esi, byte [edx]
shl ebx, 4
lea ecx, [ebx + esi]
lea ebx, [esi - 0x30]
mov eax, esi
cmp bl, 9
mov byte [esp + 0x24], bl
jbe 0x526b63
lea ebx, [esi - 0x41]
cmp bl, 5
jbe 0x526c27
lea ebx, [esi - 0x61]
cmp bl, 5
ja 0x5268e6
sub ecx, 0x57
cmp edx, ebp
jb 0x526ba5
cmp byte [edi + 0x1c], 0
je 0x526cec
shl ecx, 4
add ecx, esi
cmp byte [esp + 0x24], 9
jbe 0x526b5b
lea ebx, [eax - 0x41]
cmp bl, 5
jbe 0x526c2f
lea ebx, [eax - 0x61]
cmp bl, 5
ja 0x5268e6
sub ecx, 0x57
cmp edx, ebp
jb 0x526bbf
cmp byte [edi + 0x1c], 0
je 0x526da9
shl ecx, 4
add esi, ecx
cmp byte [esp + 0x24], 9
jbe 0x526b6b
lea ecx, [eax - 0x41]
cmp cl, 5
jbe 0x526c37
sub eax, 0x61
cmp al, 5
ja 0x5268e6
sub esi, 0x57
cmp edx, ebp
jb 0x526bd9
cmp byte [edi + 0x1c], 0
je 0x526c97
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x52664c
lea eax, [esi - 0xd800]
cmp eax, 0x3ff
mov dword [esp + 0x2c], eax
jbe 0x526e38
lea eax, [esp + 0x38]
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.005293d0
jmp 0x5263d5
mov eax, dword [ebx]
test eax, eax
je 0x526e92
mov eax, dword [ebx + 0x14]
jmp 0x52695b
mov esi, dword [ebx]
test esi, esi
je 0x526eb7
mov ecx, dword [ebx + 0x14]
jmp 0x526914
mov eax, dword [edx + 0x18]
test eax, eax
je 0x526e69
mov eax, dword [esp + 0x64]
mov edx, dword [eax + 0x2c]
jmp 0x52687d
sub ecx, 0x30
jmp 0x526a99
sub ecx, 0x30
jmp 0x526a5c
sub esi, 0x30
jmp 0x526ad5
add edx, 1
mov dword [edi + 0x10], edx
jmp 0x526a26
mov dword [esp], eax
call sub.msvcrt.dll_free
xor eax, eax
jmp 0x526934
mov dword [esp], ebp
call sub.msvcrt.dll_free
xor eax, eax
mov edx, dword [esp + 0x24]
movzx ecx, byte [esp + 0x28]
jmp 0x52698a
lea ebx, [edx + 1]
mov dword [edi + 0x10], ebx
movsx esi, byte [edx + 1]
lea edx, [esi - 0x30]
mov eax, esi
mov byte [esp + 0x24], dl
mov edx, ebx
jmp 0x526a6e
lea ebx, [edx + 1]
mov dword [edi + 0x10], ebx
movsx esi, byte [edx + 1]
lea edx, [esi - 0x30]
mov eax, esi
mov byte [esp + 0x24], dl
mov edx, ebx
jmp 0x526aab
add edx, 1
mov dword [edi + 0x10], edx
jmp 0x526ae7
mov dword [esp], 1
call fcn.0053ca80
mov edx, dword [esi + 0xc]
mov dword [esi], eax
mov dword [esi + 4], eax
mov eax, dword [esi + 8]
jmp 0x52683a
mov dword [esp], 1
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], edx
call fcn.0053ca80
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
jmp 0x526856
sub ecx, 0x37
jmp 0x526a5c
sub ecx, 0x37
jmp 0x526a99
sub esi, 0x37
jmp 0x526ad5
mov eax, dword [edi + 0x14]
add dword [edi + 0x18], eax
mov eax, dword [edi]
mov dword [esp + 0xc], eax
mov eax, dword [edi + 8]
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov eax, dword [edi + 4]
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov edx, dword [edi + 4]
cmp eax, dword [edi + 8]
mov dword [edi + 0x14], eax
lea ebp, [edx + eax - 1]
mov dword [edi + 0x10], edx
mov dword [edi + 0xc], ebp
jae 0x5269fd
mov byte [edx + eax], 0
mov eax, dword [edi + 0xc]
mov byte [edi + 0x1c], 1
mov edx, dword [edi + 0x10]
lea ebp, [eax + 1]
mov dword [edi + 0xc], ebp
jmp 0x5269fd
mov eax, dword [edi + 0x14]
add dword [edi + 0x18], eax
mov eax, dword [edi]
mov dword [esp + 0xc], eax
mov eax, dword [edi + 8]
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov eax, dword [edi + 4]
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov edx, dword [edi + 4]
cmp eax, dword [edi + 8]
mov dword [edi + 0x14], eax
lea ebp, [edx + eax - 1]
mov dword [edi + 0x10], edx
mov dword [edi + 0xc], ebp
jae 0x526ae7
mov byte [edx + eax], 0
mov eax, dword [edi + 0xc]
mov byte [edi + 0x1c], 1
lea ebp, [eax + 1]
mov dword [edi + 0xc], ebp
jmp 0x526ae7
mov eax, dword [edi + 0x14]
add dword [edi + 0x18], eax
mov eax, dword [edi]
mov dword [esp + 0x24], ecx
mov dword [esp + 0xc], eax
mov eax, dword [edi + 8]
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov eax, dword [edi + 4]
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov edx, dword [edi + 4]
cmp eax, dword [edi + 8]
mov dword [edi + 0x14], eax
mov ecx, dword [esp + 0x24]
lea ebp, [edx + eax - 1]
mov dword [edi + 0x10], edx
mov dword [edi + 0xc], ebp
jae 0x526d43
mov byte [edx + eax], 0
mov eax, dword [edi + 0xc]
mov edx, dword [edi + 0x10]
mov byte [edi + 0x1c], 1
lea ebp, [eax + 1]
mov dword [edi + 0xc], ebp
movsx esi, byte [edx]
lea ebx, [esi - 0x30]
mov eax, esi
mov byte [esp + 0x24], bl
jmp 0x526a6e
mov eax, dword [edi + 0x14]
add dword [edi + 0x18], eax
mov eax, dword [edi]
mov dword [esp + 0xc], eax
mov eax, dword [edi + 8]
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov eax, dword [edi + 4]
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov edx, dword [edi + 4]
cmp eax, dword [edi + 8]
mov dword [edi + 0x14], eax
lea ebp, [edx + eax - 1]
mov dword [edi + 0x10], edx
mov dword [edi + 0xc], ebp
jae 0x526a26
mov byte [edx + eax], 0
mov eax, dword [edi + 0xc]
mov byte [edi + 0x1c], 1
lea ebp, [eax + 1]
mov dword [edi + 0xc], ebp
jmp 0x526a23
mov eax, dword [edi + 0x14]
add dword [edi + 0x18], eax
mov eax, dword [edi]
mov dword [esp + 0x24], ecx
mov dword [esp + 0xc], eax
mov eax, dword [edi + 8]
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov eax, dword [edi + 4]
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov edx, dword [edi + 4]
cmp eax, dword [edi + 8]
mov dword [edi + 0x14], eax
mov ecx, dword [esp + 0x24]
lea ebp, [edx + eax - 1]
mov dword [edi + 0x10], edx
mov dword [edi + 0xc], ebp
jae 0x526e00
mov byte [edx + eax], 0
mov eax, dword [edi + 0xc]
mov edx, dword [edi + 0x10]
mov byte [edi + 0x1c], 1
lea ebp, [eax + 1]
mov dword [edi + 0xc], ebp
movsx esi, byte [edx]
lea ebx, [esi - 0x30]
mov eax, esi
mov byte [esp + 0x24], bl
jmp 0x526aab
lea ecx, [esi - 0x41]
cmp cl, 5
ja 0x5272fc
lea ebx, [esi - 0x37]
jmp 0x526a11
mov ebp, dword [esp + 0x1c]
mov dword [ebp + 0x18], 0xa
mov dword [ebp + 0x1c], ecx
jmp 0x52664c
mov edx, dword [edi + 0x10]
cmp byte [edx], 0x5c
jne 0x526e52
cmp edx, ebp
jb 0x526ed3
cmp byte [edi + 0x1c], 0
je 0x5271a8
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
mov dword [ebp + 0x18], 9
mov dword [ebp + 0x1c], eax
jmp 0x52664c
mov dword [esp], 1
mov dword [esp + 0x20], ecx
call fcn.0053ca80
mov ecx, dword [esp + 0x64]
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], eax
mov ebp, dword [ecx + 0x20]
mov edi, dword [ecx + 0x24]
mov ecx, dword [esp + 0x20]
jmp 0x526b4f
mov dword [esp], 1
mov byte [esp + 0x24], cl
call fcn.0053ca80
mov ebp, dword [ebx + 8]
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov edx, dword [ebx + 0xc]
movzx ecx, byte [esp + 0x24]
jmp 0x526b2a
mov dword [esp], 1
call fcn.0053ca80
mov edx, dword [ebx + 0xc]
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov eax, dword [ebx + 8]
jmp 0x526b3c
add edx, 1
mov dword [edi + 0x10], edx
cmp byte [edx], 0x75
jne 0x526e52
cmp edx, ebp
jb 0x527074
cmp byte [edi + 0x1c], 0
jne 0x5268e6
mov eax, dword [edi + 0x14]
add dword [edi + 0x18], eax
mov eax, dword [edi]
mov dword [esp + 0xc], eax
mov eax, dword [edi + 8]
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov eax, dword [edi + 4]
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov edx, dword [edi + 4]
cmp eax, dword [edi + 8]
mov dword [edi + 0x14], eax
lea ebp, [edx + eax - 1]
mov dword [edi + 0x10], edx
mov dword [edi + 0xc], ebp
jae 0x526f43
mov byte [edx + eax], 0
mov eax, dword [edi + 0xc]
mov edx, dword [edi + 0x10]
mov byte [edi + 0x1c], 1
lea ebp, [eax + 1]
mov dword [edi + 0xc], ebp
movsx esi, byte [edx]
lea ecx, [esi - 0x30]
mov eax, esi
lea ebx, [esi - 0x30]
cmp cl, 9
ja 0x5272d8
cmp edx, ebp
jb 0x5270d0
cmp byte [edi + 0x1c], 0
je 0x527153
mov edx, dword [edi + 0x10]
movzx ecx, byte [edx]
mov eax, ebx
shl eax, 4
movsx ebx, cl
add eax, ebx
mov dword [esp + 0x24], ebx
mov ebx, eax
mov eax, ecx
lea esi, [eax - 0x30]
mov ecx, esi
cmp cl, 9
jbe 0x5270c4
lea ecx, [eax - 0x41]
cmp cl, 5
jbe 0x5272cc
lea ecx, [eax - 0x61]
cmp cl, 5
ja 0x5268e6
sub ebx, 0x57
cmp edx, ebp
jb 0x5270aa
cmp byte [edi + 0x1c], 0
je 0x52726c
mov ecx, ebx
shl ecx, 4
add ecx, dword [esp + 0x24]
mov ebx, ecx
mov ecx, esi
cmp cl, 9
jbe 0x52709e
lea ecx, [eax - 0x41]
cmp cl, 5
jbe 0x527260
lea ecx, [eax - 0x61]
cmp cl, 5
ja 0x5268e6
sub ebx, 0x57
cmp edx, ebp
jb 0x527084
cmp byte [edi + 0x1c], 0
je 0x527200
mov ecx, ebx
mov ebx, esi
shl ecx, 4
add ecx, dword [esp + 0x24]
cmp bl, 9
jbe 0x52707f
lea esi, [eax - 0x41]
mov ebx, esi
cmp bl, 5
jbe 0x5270e6
sub eax, 0x61
cmp al, 5
ja 0x5268e6
lea esi, [ecx - 0x57]
cmp edx, ebp
jb 0x5270db
cmp byte [edi + 0x1c], 0
je 0x527103
mov eax, dword [esp + 0x1c]
mov ebp, dword [eax + 0x18]
test ebp, ebp
jne 0x52664c
lea ebp, [esi - 0xdc00]
cmp ebp, 0x3ff
ja 0x5270ee
mov ebx, dword [esp + 0x2c]
shl ebx, 0xa
mov esi, ebx
or esi, ebp
add esi, 0x10000
jmp 0x526b0b
add edx, 1
mov dword [edi + 0x10], edx
jmp 0x526f43
lea esi, [ecx - 0x30]
jmp 0x52702b
lea ecx, [edx + 1]
mov dword [edi + 0x10], ecx
movsx edx, byte [edx + 1]
mov eax, edx
mov dword [esp + 0x24], edx
lea esi, [edx - 0x30]
mov edx, ecx
jmp 0x526fff
mov ecx, ebx
sub ecx, 0x30
mov ebx, ecx
jmp 0x526fed
lea ecx, [edx + 1]
mov dword [edi + 0x10], ecx
movsx edx, byte [edx + 1]
mov eax, edx
mov dword [esp + 0x24], edx
lea esi, [edx - 0x30]
mov edx, ecx
jmp 0x526fbc
mov ecx, ebx
sub ecx, 0x30
mov ebx, ecx
jmp 0x526faa
add edx, 1
mov dword [edi + 0x10], edx
jmp 0x526f6c
add edx, 1
mov dword [edi + 0x10], edx
jmp 0x52703d
lea esi, [ecx - 0x37]
jmp 0x52702b
mov ebp, eax
mov dword [eax + 0x18], 9
mov eax, dword [esp + 0x28]
mov dword [ebp + 0x1c], eax
jmp 0x52664c
mov eax, dword [edi + 0x14]
add dword [edi + 0x18], eax
mov eax, dword [edi]
mov dword [esp + 0xc], eax
mov eax, dword [edi + 8]
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov eax, dword [edi + 4]
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov edx, dword [edi + 4]
cmp eax, dword [edi + 8]
mov dword [edi + 0x14], eax
lea ecx, [edx + eax - 1]
mov dword [edi + 0x10], edx
mov dword [edi + 0xc], ecx
jae 0x52703d
mov byte [edx + eax], 0
mov byte [edi + 0x1c], 1
add dword [edi + 0xc], 1
jmp 0x52703d
mov eax, dword [edi + 0x14]
add dword [edi + 0x18], eax
mov eax, dword [edi]
mov dword [esp + 0xc], eax
mov eax, dword [edi + 8]
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov eax, dword [edi + 4]
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov edx, dword [edi + 4]
cmp dword [edi + 8], eax
mov dword [edi + 0x14], eax
lea ebp, [edx + eax - 1]
mov dword [edi + 0x10], edx
mov dword [edi + 0xc], ebp
jbe 0x526f6c
mov byte [edx + eax], 0
mov eax, dword [edi + 0xc]
mov byte [edi + 0x1c], 1
lea ebp, [eax + 1]
mov dword [edi + 0xc], ebp
jmp 0x526f69
mov eax, dword [edi + 0x14]
add dword [edi + 0x18], eax
mov eax, dword [edi]
mov dword [esp + 0xc], eax
mov eax, dword [edi + 8]
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov eax, dword [edi + 4]
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov edx, dword [edi + 4]
cmp eax, dword [edi + 8]
mov dword [edi + 0x14], eax
lea ebp, [edx + eax - 1]
mov dword [edi + 0x10], edx
mov dword [edi + 0xc], ebp
jae 0x526ed9
mov byte [edx + eax], 0
mov eax, dword [edi + 0xc]
mov byte [edi + 0x1c], 1
mov edx, dword [edi + 0x10]
lea ebp, [eax + 1]
mov dword [edi + 0xc], ebp
jmp 0x526ed9
mov eax, dword [edi + 0x14]
add dword [edi + 0x18], eax
mov eax, dword [edi]
mov dword [esp + 0xc], eax
mov eax, dword [edi + 8]
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov eax, dword [edi + 4]
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov edx, dword [edi + 4]
cmp dword [edi + 8], eax
mov dword [edi + 0x14], eax
lea ebp, [edx + eax - 1]
mov dword [edi + 0x10], edx
mov dword [edi + 0xc], ebp
jbe 0x52724f
mov byte [edx + eax], 0
mov eax, dword [edi + 0xc]
mov edx, dword [edi + 0x10]
mov byte [edi + 0x1c], 1
lea ebp, [eax + 1]
mov dword [edi + 0xc], ebp
movsx ecx, byte [edx]
mov eax, ecx
mov dword [esp + 0x24], ecx
lea esi, [ecx - 0x30]
jmp 0x526fff
mov ecx, ebx
sub ecx, 0x37
mov ebx, ecx
jmp 0x526fed
mov eax, dword [edi + 0x14]
add dword [edi + 0x18], eax
mov eax, dword [edi]
mov dword [esp + 0xc], eax
mov eax, dword [edi + 8]
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov eax, dword [edi + 4]
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov edx, dword [edi + 4]
cmp eax, dword [edi + 8]
mov dword [edi + 0x14], eax
lea ebp, [edx + eax - 1]
mov dword [edi + 0x10], edx
mov dword [edi + 0xc], ebp
jae 0x5272bb
mov byte [edx + eax], 0
mov eax, dword [edi + 0xc]
mov edx, dword [edi + 0x10]
mov byte [edi + 0x1c], 1
lea ebp, [eax + 1]
mov dword [edi + 0xc], ebp
movsx ecx, byte [edx]
mov eax, ecx
mov dword [esp + 0x24], ecx
lea esi, [ecx - 0x30]
jmp 0x526fbc
mov ecx, ebx
sub ecx, 0x37
mov ebx, ecx
jmp 0x526faa
lea ecx, [esi - 0x41]
lea ebx, [esi - 0x37]
cmp cl, 5
jbe 0x526f57
sub eax, 0x61
cmp al, 5
ja 0x5268e6
lea eax, [esi - 0x57]
mov ebx, eax
jmp 0x526f57
sub eax, 0x61
cmp al, 5
ja 0x5268e6
lea ebx, [esi - 0x57]
jmp 0x526a11