Function at 0x4200a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xe0
push ebx
push ebp
push esi
xor ebp, ebp
push edi
push ebp
call fcn.0041b3f0
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x65]
mov byte [esp + 0x64], 0
rep stosd dword es:[edi], eax
mov ebx, dword [esp + 0xf8]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x64]
push eax
push ebx
call fcn.004204e0
add esp, 0xc
test eax, eax
jne 0x4200fc
push 0x279a
push 0xf
call fcn.0041b3d0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe0
ret
lea ecx, [esp + 0x60]
push ecx
call fcn.0041e290
add esp, 4
cmp eax, 3
je 0x42011b
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xe0
ret
mov edx, dword [esp + 0x80]
push edx
call fcn.0041b0e0
add esp, 4
test eax, eax
je 0x42014b
push 0x27a6
push 0x31
call fcn.0041b3d0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe0
ret
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 0xa4]
mov dword [esp + 0xa0], ebp
rep stosd dword es:[edi], eax
lea eax, [esp + 0xa0]
lea ecx, [esp + 0x60]
push eax
push ecx
push ebx
call fcn.004205e0
add esp, 0xc
test eax, eax
jne 0x420198
push 0x27af
push 0x14
call fcn.0041b3d0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe0
ret
mov ecx, 0xd
xor eax, eax
lea edi, [esp + 0x2c]
mov dword [esp + 0x28], ebp
rep stosd dword es:[edi], eax
lea edx, [esp + 0x28]
lea eax, [esp + 0xa0]
push edx
lea ecx, [esp + 0x64]
push eax
push ecx
push ebx
call fcn.00420770
add esp, 0x10
test eax, eax
jne 0x4201e4
push 0x27b7
push 0x14
call fcn.0041b3d0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe0
ret
cmp word [esp + 0x32], bp
je 0x420207
push 0x27be
push 1
call fcn.0041b3d0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe0
ret
mov edi, dword [esp + 0xf8]
cmp edi, ebp
je 0x420249
mov ecx, 0x50
lea esi, [esp + 0xa0]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x420229
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
je 0x420249
push 0x27c8
push 0x14
call fcn.0041b3d0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe0
ret
mov edx, dword [esp + 0xc4]
push ebp
push ebp
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x50]
mov dword [esp + 0x10], 1
cmp eax, ebp
mov dword [esp + 0x18], ebp
jne 0x42027e
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xe0
ret
mov ebx, dword [esp + 0x54]
cmp eax, 1
jne 0x42028b
mov ebx, dword [esp + 0x58]
push ebx
call fcn.004a2973
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x4202b6
push 0x27e2
push 0x21
call fcn.0041b3d0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe0
ret
xor eax, eax
jmp 0x4202be
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x50]
mov esi, dword [esp + 0x54]
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jne 0x4202db
mov esi, dword [esp + 0x58]
mov dword [esp + 0x18], 1
mov ecx, ebx
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0xf4]
xor edi, edi
lea eax, [esp + 0x14]
push edi
push eax
push esi
push ebp
push ecx
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x420346
cmp esi, dword [esp + 0x14]
jne 0x42034f
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x24]
push edx
push eax
push esi
push ebp
push ecx
mov dword [esp + 0x38], edi
mov dword [esp + 0x30], edi
call fcn.004228f0
add esp, 0x14
test eax, eax
je 0x420358
cmp dword [esp + 0x18], edi
je 0x4202ba
jmp 0x42036b
push 0x27f8
push 0xd
jmp 0x42035f
push 0x27ff
push 0xd
jmp 0x42035f
push 0x280b
push 0x1c
call fcn.0041b3d0
add esp, 8
mov dword [esp + 0x10], edi
push ebp
call fcn.004a299c
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe0
ret