Function at 0x627ca8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407578
xor eax, eax
push ebp
push 0x627eba
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp + 8], 0
jne 0x627ce6
mov eax, dword [ebp - 0xc]
call fcn.0063852c
mov eax, dword [ebp - 4]
call fcn.006351f0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x1c], 0
jne 0x627d05
cmp dword [ebp - 0x20], 6
jae 0x627d0b
jmp 0x627e94
jl 0x627e94
mov eax, dword [ebp - 4]
call fcn.0063282c
mov esi, eax
cmp esi, 1
je 0x627d1f
cmp esi, 2
jne 0x627d46
movzx eax, byte [ebp + 0xc]
push eax
push 1
lea ecx, [ebp - 0x40]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00632934
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.00627c30
jmp 0x627e94
mov dword [ebp - 0x14], 0x600000
mov eax, dword [ebp - 0x14]
add eax, eax
cdq
cmp edx, dword [ebp - 0x1c]
jne 0x627d5f
cmp eax, dword [ebp - 0x20]
jb 0x627d79
jmp 0x627d61
jl 0x627d79
push 0
push 2
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
call fcn.0040944c
add eax, dword [ebp - 0x20]
add eax, 8
mov dword [ebp - 0x14], eax
push 0
push 0x8000080
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.004082fc
push eax
call sub.kernel32.dll_CreateFileW
mov edi, eax
cmp edi, 0xffffffff
je 0x627e94
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov edx, dword [ebp - 0x14]
add edx, 0x400
lea eax, [ebp - 8]
xor ecx, ecx
call fcn.00407fa0
push 0
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
push eax
push edi
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x627e82
cmp dword [ebp - 0x28], 1
jb 0x627e82
mov esi, 0x400
push 0
lea eax, [ebp - 0x2c]
push eax
push 1
lea eax, [ebp - 0x21]
push eax
push edi
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x627e33
cmp dword [ebp - 0x2c], 1
jb 0x627e33
inc dword [ebp - 0x28]
lea eax, [ebp - 8]
call fcn.00407a54
mov edx, dword [ebp - 0x28]
movzx ecx, byte [ebp - 0x21]
mov byte [eax + edx - 1], cl
movzx ebx, byte [ebp - 0x21]
cmp bl, 0x27
jb 0x627e33
cmp bl, 0x7a
ja 0x627e33
dec esi
jne 0x627df0
lea eax, [ebp - 8]
xor ecx, ecx
mov edx, dword [ebp - 0x28]
call fcn.00407fa0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x627e57
mov eax, dword [ebp - 0x3c]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 6
jl 0x627e72
movzx eax, byte [ebp + 0xc]
push eax
push 1
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.00627a2c
mov eax, dword [ebp - 0x28]
xor edx, edx
add dword [ebp - 0x38], eax
adc dword [ebp - 0x34], edx
jmp 0x627db2
lea eax, [ebp - 8]
xor ecx, ecx
xor edx, edx
call fcn.00407fa0
push edi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x627ec1
lea eax, [ebp - 0x40]
call fcn.00407494
lea eax, [ebp - 8]
call fcn.004074b8
lea eax, [ebp - 4]
call fcn.00407494
ret