Function at 0x438036
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 0x4380da
test ebx, ebx
je 0x438063
mov edi, dword [esi]
mov ecx, dword [esi + 0x44]
movzx eax, byte [edi]
mov byte [ecx], al
call fcn.00441940
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 0x4380b1
mov ecx, dword [esi + 0x40]
test byte [ecx + 0xc], 0x20
je 0x4380b1
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 0x4380da
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 0x4380ea
mov dword [esi + 0x58], 1
jmp 0x4380ca
cmp byte [eax + 1], 0x8b
jne 0x4380e1
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 0x43811d
test edx, edx
je 0x438587
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 0x43813d
mov eax, dword [esi + 4]
test eax, eax
je 0x438528
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 0x43814e
mov dword [esi + 0x38], 0xfffffffd
jmp 0x4380ca
test edi, 0xe0
jne 0x438142
mov ecx, dword [esi + 0x3c]
xor ebx, ebx
test ecx, ecx
jne 0x438170
mov eax, dword [esi + 4]
test eax, eax
je 0x4384c6
inc dword [esi]
dec eax
mov dword [esi + 4], eax
inc ebx
cmp ebx, 5
jbe 0x43815b
test edi, 4
je 0x4381e7
test ecx, ecx
mov ebx, 0xffffffff
jne 0x43819e
mov eax, dword [esi + 4]
test eax, eax
je 0x438461
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 0x4381be
mov eax, dword [esi + 4]
test eax, eax
je 0x4383fc
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 0x4381e7
test ecx, ecx
jne 0x4381e7
mov eax, dword [esi + 4]
test eax, eax
je 0x43839c
dec eax
mov dword [esi + 4], eax
mov eax, dword [esi]
movzx edx, byte [eax]
inc eax
mov dword [esi], eax
inc edx
jne 0x4381c3
test edi, 8
je 0x438216
test ecx, ecx
mov edx, 0xffffffff
jne 0x43820f
mov eax, dword [esi + 4]
test eax, eax
je 0x438337
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 0x438216
inc edx
jne 0x4381ef
test edi, 0x10
je 0x438245
test ecx, ecx
mov edx, 0xffffffff
jne 0x43823e
mov eax, dword [esi + 4]
test eax, eax
je 0x4382d2
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 0x438245
inc edx
jne 0x43821e
and edi, 2
je 0x438263
xor ebx, ebx
test ecx, ecx
jne 0x43825d
mov eax, dword [esi + 4]
test eax, eax
je 0x438276
inc dword [esi]
dec eax
mov dword [esi + 4], eax
inc ebx
cmp ebx, 1
jbe 0x43824c
xor edx, edx
test ecx, ecx
sete dl
lea ebx, [edx + edx*2 - 3]
mov dword [esi + 0x38], ebx
jmp 0x4380ca
call fcn.00441940
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 0x4382c8
mov dword [esi + 0x3c], 1
mov ecx, dword [esi + 0x40]
test byte [ecx + 0xc], 0x20
je 0x4382c1
mov dword [esi + 0x38], 0xffffffff
mov ecx, 1
jmp 0x43825d
mov edi, dword [esi + 0x44]
mov ecx, dword [esi + 0x3c]
mov dword [esi], edi
jmp 0x438257
call fcn.00441940
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 0x43832a
mov dword [esi + 0x3c], 1
mov ebx, dword [esi + 0x40]
test byte [ebx + 0xc], 0x20
je 0x43831d
mov dword [esi + 0x38], 0xffffffff
mov ecx, dword [esi + 0x3c]
mov edx, 0xffffffff
jmp 0x43823e
mov ecx, dword [esi + 0x44]
mov dword [esi], ecx
mov ecx, dword [esi + 0x3c]
jmp 0x438232
call fcn.00441940
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 0x43838f
mov dword [esi + 0x3c], 1
mov ecx, dword [esi + 0x40]
test byte [ecx + 0xc], 0x20
je 0x438382
mov dword [esi + 0x38], 0xffffffff
mov ecx, dword [esi + 0x3c]
mov edx, 0xffffffff
jmp 0x43820f
mov ebx, dword [esi + 0x44]
mov ecx, dword [esi + 0x3c]
mov dword [esi], ebx
jmp 0x438203
call fcn.00441940
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 0x4383dd
mov ecx, dword [esi + 0x44]
mov dword [esi], ecx
mov ecx, dword [esi + 0x3c]
jmp 0x4381d8
mov dword [esi + 0x3c], 1
mov ebx, dword [esi + 0x40]
test byte [ebx + 0xc], 0x20
je 0x4383f4
mov dword [esi + 0x38], 0xffffffff
mov ecx, dword [esi + 0x3c]
jmp 0x4381e7
call fcn.00441940
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 0x438454
mov dword [esi + 0x3c], 1
mov ecx, dword [esi + 0x40]
test byte [ecx + 0xc], 0x20
je 0x438447
mov dword [esi + 0x38], 0xffffffff
mov ecx, dword [esi + 0x3c]
mov edx, 0xffffffff
jmp 0x4381be
mov ecx, dword [esi + 0x44]
mov dword [esi], ecx
mov ecx, dword [esi + 0x3c]
jmp 0x4381b2
call fcn.00441940
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 0x4384b9
mov dword [esi + 0x3c], 1
mov ecx, dword [esi + 0x40]
test byte [ecx + 0xc], 0x20
je 0x4384ac
mov dword [esi + 0x38], 0xffffffff
mov ecx, dword [esi + 0x3c]
mov ebx, 0xffffffff
jmp 0x43819e
mov ebx, dword [esi + 0x44]
mov ecx, dword [esi + 0x3c]
mov dword [esi], ebx
jmp 0x438192
call fcn.00441940
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 0x43851b
mov dword [esi + 0x3c], 1
mov edx, dword [esi + 0x40]
test byte [edx + 0xc], 0x20
je 0x438511
mov dword [esi + 0x38], 0xffffffff
mov ecx, 1
jmp 0x438170
mov ecx, dword [esi + 0x44]
mov dword [esi], ecx
mov ecx, dword [esi + 0x3c]
jmp 0x43816a
call fcn.00441940
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 0x43857d
mov dword [esi + 0x3c], 1
mov edx, dword [esi + 0x40]
test byte [edx + 0xc], 0x20
je 0x438573
mov dword [esi + 0x38], 0xffffffff
mov edi, 0xffffffff
jmp 0x43813d
mov edi, dword [esi + 0x44]
mov dword [esi], edi
jmp 0x438131
call fcn.00441940
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 0x4385df
mov dword [esi + 0x3c], 1
mov ecx, dword [esi + 0x40]
test byte [ecx + 0xc], 0x20
je 0x4385d2
mov dword [esi + 0x38], 0xffffffff
mov ecx, dword [esi + 0x3c]
mov ebx, 0xffffffff
jmp 0x43811d
mov ebx, dword [esi + 0x44]
mov ecx, dword [esi + 0x3c]
mov dword [esi], ebx
jmp 0x438112