Function at 0x4253f0
Capabilities:
Read file on windows

Disassembly:
push ebp
sub esp, 0x68
mov eax, dword [esp + 0x70]
xor edx, edx
mov dword [0x573814], edx
mov dword [esp + 0x10], edx
mov dword [esp], eax
mov dword [esp + 4], 0x76d6c0
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
test ebp, ebp
je 0x425772
mov dword [esp + 0x14], 0
lea eax, [esp + 0x14]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 4
mov dword [esp + 0xc], ebp
call dword [sym.imp.MSVCRT.dll_fread]
cmp eax, 4
jne 0x42547e
mov eax, dword [esp + 0x14]
cmp eax, 1
je 0x42548e
mov dword [esp], 0x1f
mov dword [esp + 4], 0x76d800
mov dword [esp + 8], eax
call fcn.005041f0
mov dword [esp], ebp
call dword [sym.imp.MSVCRT.dll_fclose]
xor eax, eax
add esp, 0x68
pop ebp
ret
mov dword [esp], ebp
call dword [sym.imp.MSVCRT.dll_fclose]
xor eax, eax
add esp, 0x68
pop ebp
ret
mov dword [esp + 0x18], 0
lea eax, [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 4
mov dword [esp + 0xc], ebp
call dword [sym.imp.MSVCRT.dll_fread]
cmp eax, 4
jne 0x425660
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4254f0
mov dword [esp], 0x20
mov dword [esp + 4], 0x76d840
mov dword [esp + 8], eax
call fcn.005041f0
mov dword [esp], ebp
call dword [sym.imp.MSVCRT.dll_fclose]
xor eax, eax
add esp, 0x68
pop ebp
ret
lea eax, [esp + 0x10]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 4
mov dword [esp + 0xc], ebp
call dword [sym.imp.MSVCRT.dll_fread]
cmp eax, 4
je 0x425526
mov dword [esp], ebp
call dword [sym.imp.MSVCRT.dll_fclose]
xor eax, eax
add esp, 0x68
pop ebp
ret
mov dword [esp], 0x7673a0
mov dword [esp + 4], 1
mov dword [esp + 8], 0x1f40
mov dword [esp + 0xc], ebp
call dword [sym.imp.MSVCRT.dll_fread]
cmp eax, 0x1f40
jne 0x425769
mov dl, 1
xor eax, eax
mov byte [esp + 0x60], dl
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], edi
mov esi, eax
lea esi, [esi]
mov edx, dword [esp + 0x10]
cmp esi, edx
jge 0x425740
mov ebp, esi
shl ebp, 4
mov ebx, esi
shl ebx, 6
lea edx, [ebp + ebx]
lea edi, [ebx + ebp + 0x7673bc]
mov dword [edx + 0x7673a8], 0
mov cl, byte [edx + 0x7673bc]
test cl, cl
mov dword [esp + 0x64], edi
jne 0x425649
mov edx, dword [ebx + ebp + 0x7673a4]
test edx, edx
je 0x425620
cmp edx, 1
jne 0x4255f0
mov edx, edi
mov ecx, dword [ebx + ebp + 0x7673b0]
mov edi, dword [ebx + ebp + 0x7673b4]
mov dword [esp], edx
mov dword [esp + 4], 0x76d7a0
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edi
call dword [sym.imp.MSVCRT.dll_sprintf]
jmp 0x425649
cmp edx, 2
jne 0x425649
mov edx, edi
mov ecx, dword [ebx + ebp + 0x7673b0]
mov edi, dword [ebx + ebp + 0x7673b4]
mov dword [esp], edx
mov dword [esp + 4], 0x76d7c0
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edi
call dword [sym.imp.MSVCRT.dll_sprintf]
jmp 0x425649
mov edx, edi
mov ecx, dword [ebx + ebp + 0x7673b0]
mov edi, dword [ebx + ebp + 0x7673b4]
mov dword [esp], edx
mov dword [esp + 4], 0x76d780
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edi
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edx, dword [ebx + ebp + 0x7673a0]
cmp edx, 0x200
je 0x425670
inc esi
jmp 0x425570
mov dword [esp], ebp
call dword [sym.imp.MSVCRT.dll_fclose]
xor eax, eax
add esp, 0x68
pop ebp
ret
mov dl, byte [esp + 0x60]
test dl, dl
je 0x425658
xor dl, dl
lea ecx, [esp + 0x1c]
mov edi, dword [esp + 0x64]
mov byte [esp + 0x60], dl
mov dword [esp], ecx
mov dword [esp + 4], edi
mov dword [esp + 8], 8
call dword [sym.imp.MSVCRT.dll_strncpy]
mov byte [esp + 0x24], 0
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x28]
mov dword [esp], edx
mov dword [esp + 4], 0x76d5c0
mov dword [esp + 8], ecx
call dword [sym.imp.MSVCRT.dll_sscanf]
mov edx, dword [esp + 0x28]
and edx, 0xf0000000
cmp edx, 0x90000000
jne 0x425658
lea edx, [esp + 0x1c]
lea ecx, [ebp + ebx + 0x7673c5]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], 4
call dword [sym.imp.MSVCRT.dll_strncpy]
mov byte [esp + 0x20], 0
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x2c]
mov dword [esp], edx
mov dword [esp + 4], 0x76d5c0
mov dword [esp + 8], ecx
call dword [sym.imp.MSVCRT.dll_sscanf]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
lea ebx, [esp + 0x30]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
call fcn.004241c0
lea edx, [esp + 0x30]
mov dword [esp], edx
call fcn.00424520
jmp 0x425658
mov ebp, dword [esp + 0x50]
mov ebx, dword [esp + 0x54]
mov esi, dword [esp + 0x58]
mov edi, dword [esp + 0x5c]
mov dword [0x573814], edx
mov dword [esp], ebp
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, 1
add esp, 0x68
pop ebp
ret
mov dword [esp], ebp
call dword [sym.imp.MSVCRT.dll_fclose]
xor eax, eax
add esp, 0x68
pop ebp
ret