Function at 0x438038
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 0x4380dc
test ebx, ebx
je 0x438065
mov edi, dword [esi]
mov ecx, dword [esi + 0x44]
movzx eax, byte [edi]
mov byte [ecx], al
call fcn.00441942
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 0x4380b3
mov ecx, dword [esi + 0x40]
test byte [ecx + 0xc], 0x20
je 0x4380b3
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 0x4380dc
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 0x4380ec
mov dword [esi + 0x58], 1
jmp 0x4380cc
cmp byte [eax + 1], 0x8b
jne 0x4380e3
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 0x43811f
test edx, edx
je 0x438589
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 0x43813f
mov eax, dword [esi + 4]
test eax, eax
je 0x43852a
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 0x438150
mov dword [esi + 0x38], 0xfffffffd
jmp 0x4380cc
test edi, 0xe0
jne 0x438144
mov ecx, dword [esi + 0x3c]
xor ebx, ebx
test ecx, ecx
jne 0x438172
mov eax, dword [esi + 4]
test eax, eax
je 0x4384c8
inc dword [esi]
dec eax
mov dword [esi + 4], eax
inc ebx
cmp ebx, 5
jbe 0x43815d
test edi, 4
je 0x4381e9
test ecx, ecx
mov ebx, 0xffffffff
jne 0x4381a0
mov eax, dword [esi + 4]
test eax, eax
je 0x438463
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 0x4381c0
mov eax, dword [esi + 4]
test eax, eax
je 0x4383fe
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 0x4381e9
test ecx, ecx
jne 0x4381e9
mov eax, dword [esi + 4]
test eax, eax
je 0x43839e
dec eax
mov dword [esi + 4], eax
mov eax, dword [esi]
movzx edx, byte [eax]
inc eax
mov dword [esi], eax
inc edx
jne 0x4381c5
test edi, 8
je 0x438218
test ecx, ecx
mov edx, 0xffffffff
jne 0x438211
mov eax, dword [esi + 4]
test eax, eax
je 0x438339
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 0x438218
inc edx
jne 0x4381f1
test edi, 0x10
je 0x438247
test ecx, ecx
mov edx, 0xffffffff
jne 0x438240
mov eax, dword [esi + 4]
test eax, eax
je 0x4382d4
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 0x438247
inc edx
jne 0x438220
and edi, 2
je 0x438265
xor ebx, ebx
test ecx, ecx
jne 0x43825f
mov eax, dword [esi + 4]
test eax, eax
je 0x438278
inc dword [esi]
dec eax
mov dword [esi + 4], eax
inc ebx
cmp ebx, 1
jbe 0x43824e
xor edx, edx
test ecx, ecx
sete dl
lea ebx, [edx + edx*2 - 3]
mov dword [esi + 0x38], ebx
jmp 0x4380cc
call fcn.00441942
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 0x4382ca
mov dword [esi + 0x3c], 1
mov ecx, dword [esi + 0x40]
test byte [ecx + 0xc], 0x20
je 0x4382c3
mov dword [esi + 0x38], 0xffffffff
mov ecx, 1
jmp 0x43825f
mov edi, dword [esi + 0x44]
mov ecx, dword [esi + 0x3c]
mov dword [esi], edi
jmp 0x438259
call fcn.00441942
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 0x43832c
mov dword [esi + 0x3c], 1
mov ebx, dword [esi + 0x40]
test byte [ebx + 0xc], 0x20
je 0x43831f
mov dword [esi + 0x38], 0xffffffff
mov ecx, dword [esi + 0x3c]
mov edx, 0xffffffff
jmp 0x438240
mov ecx, dword [esi + 0x44]
mov dword [esi], ecx
mov ecx, dword [esi + 0x3c]
jmp 0x438234
call fcn.00441942
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 0x438391
mov dword [esi + 0x3c], 1
mov ecx, dword [esi + 0x40]
test byte [ecx + 0xc], 0x20
je 0x438384
mov dword [esi + 0x38], 0xffffffff
mov ecx, dword [esi + 0x3c]
mov edx, 0xffffffff
jmp 0x438211
mov ebx, dword [esi + 0x44]
mov ecx, dword [esi + 0x3c]
mov dword [esi], ebx
jmp 0x438205
call fcn.00441942
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 0x4383df
mov ecx, dword [esi + 0x44]
mov dword [esi], ecx
mov ecx, dword [esi + 0x3c]
jmp 0x4381da
mov dword [esi + 0x3c], 1
mov ebx, dword [esi + 0x40]
test byte [ebx + 0xc], 0x20
je 0x4383f6
mov dword [esi + 0x38], 0xffffffff
mov ecx, dword [esi + 0x3c]
jmp 0x4381e9
call fcn.00441942
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 0x438456
mov dword [esi + 0x3c], 1
mov ecx, dword [esi + 0x40]
test byte [ecx + 0xc], 0x20
je 0x438449
mov dword [esi + 0x38], 0xffffffff
mov ecx, dword [esi + 0x3c]
mov edx, 0xffffffff
jmp 0x4381c0
mov ecx, dword [esi + 0x44]
mov dword [esi], ecx
mov ecx, dword [esi + 0x3c]
jmp 0x4381b4
call fcn.00441942
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 0x4384bb
mov dword [esi + 0x3c], 1
mov ecx, dword [esi + 0x40]
test byte [ecx + 0xc], 0x20
je 0x4384ae
mov dword [esi + 0x38], 0xffffffff
mov ecx, dword [esi + 0x3c]
mov ebx, 0xffffffff
jmp 0x4381a0
mov ebx, dword [esi + 0x44]
mov ecx, dword [esi + 0x3c]
mov dword [esi], ebx
jmp 0x438194
call fcn.00441942
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 0x43851d
mov dword [esi + 0x3c], 1
mov edx, dword [esi + 0x40]
test byte [edx + 0xc], 0x20
je 0x438513
mov dword [esi + 0x38], 0xffffffff
mov ecx, 1
jmp 0x438172
mov ecx, dword [esi + 0x44]
mov dword [esi], ecx
mov ecx, dword [esi + 0x3c]
jmp 0x43816c
call fcn.00441942
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 0x43857f
mov dword [esi + 0x3c], 1
mov edx, dword [esi + 0x40]
test byte [edx + 0xc], 0x20
je 0x438575
mov dword [esi + 0x38], 0xffffffff
mov edi, 0xffffffff
jmp 0x43813f
mov edi, dword [esi + 0x44]
mov dword [esi], edi
jmp 0x438133
call fcn.00441942
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 0x4385e1
mov dword [esi + 0x3c], 1
mov ecx, dword [esi + 0x40]
test byte [ecx + 0xc], 0x20
je 0x4385d4
mov dword [esi + 0x38], 0xffffffff
mov ecx, dword [esi + 0x3c]
mov ebx, 0xffffffff
jmp 0x43811f
mov ebx, dword [esi + 0x44]
mov ecx, dword [esi + 0x3c]
mov dword [esi], ebx
jmp 0x438114