Function at 0x42c770
Capabilities:
Read file on windows

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x44
mov ebp, dword [esp + 0x58]
mov dword [esp], ebp
mov dword [esp + 4], 0x76d6c0
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
test ebx, ebx
je 0x42cc05
mov dword [esp], ebx
mov dword [esp + 4], 0
mov dword [esp + 8], 2
call dword [sym.imp.MSVCRT.dll_fseek]
mov dword [esp], ebx
xor edx, edx
mov dword [esp + 4], edx
mov dword [esp + 8], edx
call dword [sym.imp.MSVCRT.dll_fseek]
lea edx, [esp + 0x10]
mov dword [esp], edx
mov dword [esp + 4], 1
mov dword [esp + 8], 4
mov dword [esp + 0xc], ebx
call dword [sym.imp.MSVCRT.dll_fread]
mov dword [esp], ebx
mov edx, dword [esp + 0x10]
mov dword [esp + 4], edx
mov dword [esp + 8], 1
call dword [sym.imp.MSVCRT.dll_fseek]
mov dword [esp], ebx
mov dword [esp + 4], 4
mov dword [esp + 8], 1
call dword [sym.imp.MSVCRT.dll_fseek]
lea edx, [esp + 0x10]
mov dword [esp], edx
mov dword [esp + 4], 1
mov dword [esp + 8], 4
mov dword [esp + 0xc], ebx
call dword [sym.imp.MSVCRT.dll_fread]
mov dword [esp], ebx
mov edx, dword [esp + 0x10]
mov dword [esp + 4], edx
mov dword [esp + 8], 1
call dword [sym.imp.MSVCRT.dll_fseek]
lea edx, [esp + 0x10]
mov dword [esp], edx
mov dword [esp + 4], 1
mov dword [esp + 8], 4
mov dword [esp + 0xc], ebx
call dword [sym.imp.MSVCRT.dll_fread]
mov dword [esp], ebx
mov edx, dword [esp + 0x10]
mov dword [esp + 4], edx
mov dword [esp + 8], 1
call dword [sym.imp.MSVCRT.dll_fseek]
lea edx, [esp + 0x10]
mov dword [esp], edx
mov dword [esp + 4], 1
mov dword [esp + 8], 4
mov dword [esp + 0xc], ebx
call dword [sym.imp.MSVCRT.dll_fread]
mov dword [esp], ebx
mov edx, dword [esp + 0x10]
mov dword [esp + 4], edx
mov dword [esp + 8], 1
call dword [sym.imp.MSVCRT.dll_fseek]
lea edx, [esp + 0x14]
mov dword [esp], edx
mov dword [esp + 4], 1
mov dword [esp + 8], 4
mov dword [esp + 0xc], ebx
call dword [sym.imp.MSVCRT.dll_fread]
mov edx, dword [esp + 0x14]
add edx, 0xffffffe4
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], edx
mov dword [esp], ecx
mov dword [esp + 4], 1
mov dword [esp + 8], 0x10
mov dword [esp + 0xc], ebx
call dword [sym.imp.MSVCRT.dll_fread]
mov byte [esp + 0x28], 0
mov dl, byte [esp + 0x18]
cmp dl, 0x20
jge 0x42c923
mov byte [esp + 0x18], 0x20
mov dl, byte [esp + 0x19]
cmp dl, 0x20
jge 0x42c931
mov byte [esp + 0x19], 0x20
mov dl, byte [esp + 0x1a]
cmp dl, 0x20
jge 0x42c93f
mov byte [esp + 0x1a], 0x20
mov dl, byte [esp + 0x1b]
cmp dl, 0x20
jge 0x42c94d
mov byte [esp + 0x1b], 0x20
mov dl, byte [esp + 0x1c]
cmp dl, 0x20
jge 0x42c95b
mov byte [esp + 0x1c], 0x20
mov dl, byte [esp + 0x1d]
cmp dl, 0x20
jge 0x42c969
mov byte [esp + 0x1d], 0x20
mov dl, byte [esp + 0x1e]
cmp dl, 0x20
jge 0x42c977
mov byte [esp + 0x1e], 0x20
mov dl, byte [esp + 0x1f]
cmp dl, 0x20
jge 0x42c985
mov byte [esp + 0x1f], 0x20
mov dl, byte [esp + 0x20]
cmp dl, 0x20
jge 0x42c993
mov byte [esp + 0x20], 0x20
mov dl, byte [esp + 0x21]
cmp dl, 0x20
jge 0x42c9a1
mov byte [esp + 0x21], 0x20
mov dl, byte [esp + 0x22]
cmp dl, 0x20
jge 0x42c9af
mov byte [esp + 0x22], 0x20
mov dl, byte [esp + 0x23]
cmp dl, 0x20
jge 0x42c9bd
mov byte [esp + 0x23], 0x20
mov dl, byte [esp + 0x24]
cmp dl, 0x20
jge 0x42c9cb
mov byte [esp + 0x24], 0x20
mov dl, byte [esp + 0x25]
cmp dl, 0x20
jge 0x42c9d9
mov byte [esp + 0x25], 0x20
mov dl, byte [esp + 0x26]
cmp dl, 0x20
jge 0x42c9e7
mov byte [esp + 0x26], 0x20
mov dl, byte [esp + 0x27]
cmp dl, 0x20
jge 0x42c9f5
mov byte [esp + 0x27], 0x20
mov dword [esp + 0x10], 0x10
lea edx, [esp + 0x2c]
mov eax, dword [0x573bf8]
add eax, 0xa0
mov ecx, dword [eax]
mov esi, dword [eax + 4]
mov dword [edx], ecx
mov edi, dword [eax + 8]
mov ecx, dword [eax + 0xc]
mov dword [edx + 4], esi
mov dword [edx + 8], edi
mov dword [edx + 0xc], ecx
mov byte [esp + 0x3c], 0
mov dl, byte [esp + 0x2c]
cmp dl, 0x20
jge 0x42ca34
mov byte [esp + 0x2c], 0x20
mov dl, byte [esp + 0x2d]
cmp dl, 0x20
jge 0x42ca42
mov byte [esp + 0x2d], 0x20
mov dl, byte [esp + 0x2e]
cmp dl, 0x20
jge 0x42ca50
mov byte [esp + 0x2e], 0x20
mov dl, byte [esp + 0x2f]
cmp dl, 0x20
jge 0x42ca5e
mov byte [esp + 0x2f], 0x20
mov dl, byte [esp + 0x30]
cmp dl, 0x20
jge 0x42ca6c
mov byte [esp + 0x30], 0x20
mov dl, byte [esp + 0x31]
cmp dl, 0x20
jge 0x42ca7a
mov byte [esp + 0x31], 0x20
mov dl, byte [esp + 0x32]
cmp dl, 0x20
jge 0x42ca88
mov byte [esp + 0x32], 0x20
mov dl, byte [esp + 0x33]
cmp dl, 0x20
jge 0x42ca96
mov byte [esp + 0x33], 0x20
mov dl, byte [esp + 0x34]
cmp dl, 0x20
jge 0x42caa4
mov byte [esp + 0x34], 0x20
mov dl, byte [esp + 0x35]
cmp dl, 0x20
jge 0x42cab2
mov byte [esp + 0x35], 0x20
mov dl, byte [esp + 0x36]
cmp dl, 0x20
jge 0x42cac0
mov byte [esp + 0x36], 0x20
mov dl, byte [esp + 0x37]
cmp dl, 0x20
jge 0x42cace
mov byte [esp + 0x37], 0x20
mov dl, byte [esp + 0x38]
cmp dl, 0x20
jge 0x42cadc
mov byte [esp + 0x38], 0x20
mov dl, byte [esp + 0x39]
cmp dl, 0x20
jge 0x42caea
mov byte [esp + 0x39], 0x20
mov dl, byte [esp + 0x3a]
cmp dl, 0x20
jge 0x42caf8
mov byte [esp + 0x3a], 0x20
mov dl, byte [esp + 0x3b]
cmp dl, 0x20
jge 0x42cb06
mov byte [esp + 0x3b], 0x20
mov dword [esp + 0x10], 0x10
lea esi, [esp + 0x18]
lea edi, [esp + 0x2c]
mov ecx, 0x10
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x42cb29
jae 0x42cb28
mov eax, 0xfffffffe
inc eax
test eax, eax
je 0x42cb64
mov dword [esp], 0x22
lea edx, [esp + 0x18]
lea ecx, [esp + 0x2c]
mov dword [esp + 4], 0x7749e0
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
call fcn.005041f0
mov dword [esp], ebx
call dword [sym.imp.MSVCRT.dll_fclose]
xor eax, eax
add esp, 0x44
pop ebx
pop ebp
pop esi
pop edi
ret
mov dword [esp], ebx
mov dword [esp + 4], 0xc
mov dword [esp + 8], 1
call dword [sym.imp.MSVCRT.dll_fseek]
mov edx, dword [esp + 0x14]
cmp edx, 0x10000
jl 0x42cbda
mov dword [esp], 0x7450e0
mov dword [esp + 4], 1
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
call dword [sym.imp.MSVCRT.dll_fread]
cmp eax, dword [esp + 0x14]
je 0x42cbbf
mov dword [esp], ebx
call dword [sym.imp.MSVCRT.dll_fclose]
xor eax, eax
add esp, 0x44
pop ebx
pop ebp
pop esi
pop edi
ret
mov dword [esp], ebx
call dword [sym.imp.MSVCRT.dll_fclose]
call fcn.00431080
mov eax, 1
add esp, 0x44
pop ebx
pop ebp
pop esi
pop edi
ret
mov dword [esp], 0x23
mov dword [esp + 4], 0x774a20
mov dword [esp + 8], ebp
call fcn.005041f0
mov dword [esp], ebx
call dword [sym.imp.MSVCRT.dll_fclose]
xor eax, eax
add esp, 0x44
pop ebx
pop ebp
pop esi
pop edi
ret
mov dword [esp], 6
mov dword [esp + 4], 0x7749c0
mov dword [esp + 8], ebp
call fcn.005041f0
xor eax, eax
add esp, 0x44
pop ebx
pop ebp
pop esi
pop edi
ret