Function at 0x437cf8
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x1c
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x20]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], edi
mov ebx, dword [esi + 4]
cmp ebx, 1
ja 0x437d9c
test ebx, ebx
je 0x437d25
mov edi, dword [esi]
mov ecx, dword [esi + 0x44]
movzx eax, byte [edi]
mov byte [ecx], al
call fcn.00441602
mov dword [eax], 0
mov edi, dword [esi + 0x40]
mov cl, bl
mov dword [esp + 4], 1
mov edx, 0x4000
sar edx, cl
mov dword [esp + 0xc], edi
mov dword [esp + 8], edx
mov ecx, dword [esi + 0x44]
add ebx, ecx
mov dword [esp], ebx
call sub.msvcrt.dll_fread
test eax, eax
mov ebx, eax
jne 0x437d73
mov ecx, dword [esi + 0x40]
test byte [ecx + 0xc], 0x20
je 0x437d73
mov dword [esi + 0x38], 0xffffffff
mov esi, esi
lea edi, [edi]
mov edx, dword [esi + 4]
add edx, ebx
mov ebx, dword [esi + 0x44]
mov dword [esi + 4], edx
cmp edx, 1
mov dword [esi], ebx
ja 0x437d9c
mov dword [esi + 0x58], edx
lea esi, [esi]
lea edi, [edi]
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
add esp, 0x1c
ret
mov eax, dword [esi]
cmp byte [eax], 0x1f
je 0x437dac
mov dword [esi + 0x58], 1
jmp 0x437d8c
cmp byte [eax + 1], 0x8b
jne 0x437da3
mov edx, dword [esi + 4]
add eax, 2
mov ebx, 0xffffffff
mov dword [esi], eax
mov ecx, dword [esi + 0x3c]
sub edx, 2
mov dword [esi + 4], edx
test ecx, ecx
jne 0x437ddf
test edx, edx
je 0x438249
dec dword [esi + 4]
mov edx, dword [esi]
movzx ebx, byte [edx]
inc edx
mov dword [esi], edx
test ecx, ecx
mov edi, 0xffffffff
jne 0x437dff
mov eax, dword [esi + 4]
test eax, eax
je 0x4381ea
mov ecx, dword [esi]
dec eax
mov dword [esi + 4], eax
movzx edi, byte [ecx]
inc ecx
mov dword [esi], ecx
cmp ebx, 8
je 0x437e10
mov dword [esi + 0x38], 0xfffffffd
jmp 0x437d8c
test edi, 0xe0
jne 0x437e04
mov ecx, dword [esi + 0x3c]
xor ebx, ebx
test ecx, ecx
jne 0x437e32
mov eax, dword [esi + 4]
test eax, eax
je 0x438188
inc dword [esi]
dec eax
mov dword [esi + 4], eax
inc ebx
cmp ebx, 5
jbe 0x437e1d
test edi, 4
je 0x437ea9
test ecx, ecx
mov ebx, 0xffffffff
jne 0x437e60
mov eax, dword [esi + 4]
test eax, eax
je 0x438123
mov edx, dword [esi]
dec eax
mov dword [esi + 4], eax
movzx ebx, byte [edx]
inc edx
mov dword [esi], edx
test ecx, ecx
mov edx, 0xffffffff
jne 0x437e80
mov eax, dword [esi + 4]
test eax, eax
je 0x4380be
dec eax
mov dword [esi + 4], eax
mov eax, dword [esi]
movzx edx, byte [eax]
inc eax
mov dword [esi], eax
shl edx, 8
add ebx, edx
dec ebx
cmp ebx, 0xffffffff
je 0x437ea9
test ecx, ecx
jne 0x437ea9
mov eax, dword [esi + 4]
test eax, eax
je 0x43805e
dec eax
mov dword [esi + 4], eax
mov eax, dword [esi]
movzx edx, byte [eax]
inc eax
mov dword [esi], eax
inc edx
jne 0x437e85
test edi, 8
je 0x437ed8
test ecx, ecx
mov edx, 0xffffffff
jne 0x437ed1
mov eax, dword [esi + 4]
test eax, eax
je 0x437ff9
mov ebx, dword [esi]
dec eax
mov dword [esi + 4], eax
movzx edx, byte [ebx]
inc ebx
mov dword [esi], ebx
test edx, edx
je 0x437ed8
inc edx
jne 0x437eb1
test edi, 0x10
je 0x437f07
test ecx, ecx
mov edx, 0xffffffff
jne 0x437f00
mov eax, dword [esi + 4]
test eax, eax
je 0x437f94
mov ebx, dword [esi]
dec eax
mov dword [esi + 4], eax
movzx edx, byte [ebx]
inc ebx
mov dword [esi], ebx
test edx, edx
je 0x437f07
inc edx
jne 0x437ee0
and edi, 2
je 0x437f25
xor ebx, ebx
test ecx, ecx
jne 0x437f1f
mov eax, dword [esi + 4]
test eax, eax
je 0x437f38
inc dword [esi]
dec eax
mov dword [esi + 4], eax
inc ebx
cmp ebx, 1
jbe 0x437f0e
xor edx, edx
test ecx, ecx
sete dl
lea ebx, [edx + edx*2 - 3]
mov dword [esi + 0x38], ebx
jmp 0x437d8c
call fcn.00441602
mov dword [eax], 0
mov edx, dword [esi + 0x40]
mov dword [esp + 8], 0x4000
mov dword [esp + 4], 1
mov dword [esp + 0xc], edx
mov edi, dword [esi + 0x44]
mov dword [esp], edi
call sub.msvcrt.dll_fread
mov dword [esi + 4], eax
test eax, eax
jne 0x437f8a
mov dword [esi + 0x3c], 1
mov ecx, dword [esi + 0x40]
test byte [ecx + 0xc], 0x20
je 0x437f83
mov dword [esi + 0x38], 0xffffffff
mov ecx, 1
jmp 0x437f1f
mov edi, dword [esi + 0x44]
mov ecx, dword [esi + 0x3c]
mov dword [esi], edi
jmp 0x437f19
call fcn.00441602
mov dword [eax], 0
mov ecx, dword [esi + 0x40]
mov dword [esp + 8], 0x4000
mov dword [esp + 4], 1
mov dword [esp + 0xc], ecx
mov edx, dword [esi + 0x44]
mov dword [esp], edx
call sub.msvcrt.dll_fread
mov dword [esi + 4], eax
test eax, eax
jne 0x437fec
mov dword [esi + 0x3c], 1
mov ebx, dword [esi + 0x40]
test byte [ebx + 0xc], 0x20
je 0x437fdf
mov dword [esi + 0x38], 0xffffffff
mov ecx, dword [esi + 0x3c]
mov edx, 0xffffffff
jmp 0x437f00
mov ecx, dword [esi + 0x44]
mov dword [esi], ecx
mov ecx, dword [esi + 0x3c]
jmp 0x437ef4
call fcn.00441602
mov dword [eax], 0
mov ebx, dword [esi + 0x40]
mov dword [esp + 8], 0x4000
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov edx, dword [esi + 0x44]
mov dword [esp], edx
call sub.msvcrt.dll_fread
mov dword [esi + 4], eax
test eax, eax
jne 0x438051
mov dword [esi + 0x3c], 1
mov ecx, dword [esi + 0x40]
test byte [ecx + 0xc], 0x20
je 0x438044
mov dword [esi + 0x38], 0xffffffff
mov ecx, dword [esi + 0x3c]
mov edx, 0xffffffff
jmp 0x437ed1
mov ebx, dword [esi + 0x44]
mov ecx, dword [esi + 0x3c]
mov dword [esi], ebx
jmp 0x437ec5
call fcn.00441602
mov dword [eax], 0
mov ecx, dword [esi + 0x40]
mov dword [esp + 8], 0x4000
mov dword [esp + 4], 1
mov dword [esp + 0xc], ecx
mov edx, dword [esi + 0x44]
mov dword [esp], edx
call sub.msvcrt.dll_fread
mov dword [esi + 4], eax
test eax, eax
je 0x43809f
mov ecx, dword [esi + 0x44]
mov dword [esi], ecx
mov ecx, dword [esi + 0x3c]
jmp 0x437e9a
mov dword [esi + 0x3c], 1
mov ebx, dword [esi + 0x40]
test byte [ebx + 0xc], 0x20
je 0x4380b6
mov dword [esi + 0x38], 0xffffffff
mov ecx, dword [esi + 0x3c]
jmp 0x437ea9
call fcn.00441602
mov dword [eax], 0
mov edx, dword [esi + 0x40]
mov dword [esp + 8], 0x4000
mov dword [esp + 4], 1
mov dword [esp + 0xc], edx
mov ecx, dword [esi + 0x44]
mov dword [esp], ecx
call sub.msvcrt.dll_fread
mov dword [esi + 4], eax
test eax, eax
jne 0x438116
mov dword [esi + 0x3c], 1
mov ecx, dword [esi + 0x40]
test byte [ecx + 0xc], 0x20
je 0x438109
mov dword [esi + 0x38], 0xffffffff
mov ecx, dword [esi + 0x3c]
mov edx, 0xffffffff
jmp 0x437e80
mov ecx, dword [esi + 0x44]
mov dword [esi], ecx
mov ecx, dword [esi + 0x3c]
jmp 0x437e74
call fcn.00441602
mov dword [eax], 0
mov edx, dword [esi + 0x40]
mov dword [esp + 8], 0x4000
mov dword [esp + 4], 1
mov dword [esp + 0xc], edx
mov ebx, dword [esi + 0x44]
mov dword [esp], ebx
call sub.msvcrt.dll_fread
mov dword [esi + 4], eax
test eax, eax
jne 0x43817b
mov dword [esi + 0x3c], 1
mov ecx, dword [esi + 0x40]
test byte [ecx + 0xc], 0x20
je 0x43816e
mov dword [esi + 0x38], 0xffffffff
mov ecx, dword [esi + 0x3c]
mov ebx, 0xffffffff
jmp 0x437e60
mov ebx, dword [esi + 0x44]
mov ecx, dword [esi + 0x3c]
mov dword [esi], ebx
jmp 0x437e54
call fcn.00441602
mov dword [eax], 0
mov ecx, dword [esi + 0x40]
mov dword [esp + 8], 0x4000
mov dword [esp + 4], 1
mov dword [esp + 0xc], ecx
mov edx, dword [esi + 0x44]
mov dword [esp], edx
call sub.msvcrt.dll_fread
mov dword [esi + 4], eax
test eax, eax
jne 0x4381dd
mov dword [esi + 0x3c], 1
mov edx, dword [esi + 0x40]
test byte [edx + 0xc], 0x20
je 0x4381d3
mov dword [esi + 0x38], 0xffffffff
mov ecx, 1
jmp 0x437e32
mov ecx, dword [esi + 0x44]
mov dword [esi], ecx
mov ecx, dword [esi + 0x3c]
jmp 0x437e2c
call fcn.00441602
mov dword [eax], 0
mov ecx, dword [esi + 0x40]
mov dword [esp + 8], 0x4000
mov dword [esp + 4], 1
mov dword [esp + 0xc], ecx
mov edi, dword [esi + 0x44]
mov dword [esp], edi
call sub.msvcrt.dll_fread
mov dword [esi + 4], eax
test eax, eax
jne 0x43823f
mov dword [esi + 0x3c], 1
mov edx, dword [esi + 0x40]
test byte [edx + 0xc], 0x20
je 0x438235
mov dword [esi + 0x38], 0xffffffff
mov edi, 0xffffffff
jmp 0x437dff
mov edi, dword [esi + 0x44]
mov dword [esi], edi
jmp 0x437df3
call fcn.00441602
mov dword [eax], 0
mov edi, dword [esi + 0x40]
mov dword [esp + 8], 0x4000
mov dword [esp + 4], 1
mov dword [esp + 0xc], edi
mov edx, dword [esi + 0x44]
mov dword [esp], edx
call sub.msvcrt.dll_fread
mov dword [esi + 4], eax
test eax, eax
jne 0x4382a1
mov dword [esi + 0x3c], 1
mov ecx, dword [esi + 0x40]
test byte [ecx + 0xc], 0x20
je 0x438294
mov dword [esi + 0x38], 0xffffffff
mov ecx, dword [esi + 0x3c]
mov ebx, 0xffffffff
jmp 0x437ddf
mov ebx, dword [esi + 0x44]
mov ecx, dword [esi + 0x3c]
mov dword [esi], ebx
jmp 0x437dd4