Function at 0x437d0d
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 0x437db1
test ebx, ebx
je 0x437d3a
mov edi, dword [esi]
mov ecx, dword [esi + 0x44]
movzx eax, byte [edi]
mov byte [ecx], al
call fcn.00441617
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 0x437d88
mov ecx, dword [esi + 0x40]
test byte [ecx + 0xc], 0x20
je 0x437d88
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 0x437db1
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 0x437dc1
mov dword [esi + 0x58], 1
jmp 0x437da1
cmp byte [eax + 1], 0x8b
jne 0x437db8
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 0x437df4
test edx, edx
je 0x43825e
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 0x437e14
mov eax, dword [esi + 4]
test eax, eax
je 0x4381ff
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 0x437e25
mov dword [esi + 0x38], 0xfffffffd
jmp 0x437da1
test edi, 0xe0
jne 0x437e19
mov ecx, dword [esi + 0x3c]
xor ebx, ebx
test ecx, ecx
jne 0x437e47
mov eax, dword [esi + 4]
test eax, eax
je 0x43819d
inc dword [esi]
dec eax
mov dword [esi + 4], eax
inc ebx
cmp ebx, 5
jbe 0x437e32
test edi, 4
je 0x437ebe
test ecx, ecx
mov ebx, 0xffffffff
jne 0x437e75
mov eax, dword [esi + 4]
test eax, eax
je 0x438138
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 0x437e95
mov eax, dword [esi + 4]
test eax, eax
je 0x4380d3
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 0x437ebe
test ecx, ecx
jne 0x437ebe
mov eax, dword [esi + 4]
test eax, eax
je 0x438073
dec eax
mov dword [esi + 4], eax
mov eax, dword [esi]
movzx edx, byte [eax]
inc eax
mov dword [esi], eax
inc edx
jne 0x437e9a
test edi, 8
je 0x437eed
test ecx, ecx
mov edx, 0xffffffff
jne 0x437ee6
mov eax, dword [esi + 4]
test eax, eax
je 0x43800e
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 0x437eed
inc edx
jne 0x437ec6
test edi, 0x10
je 0x437f1c
test ecx, ecx
mov edx, 0xffffffff
jne 0x437f15
mov eax, dword [esi + 4]
test eax, eax
je 0x437fa9
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 0x437f1c
inc edx
jne 0x437ef5
and edi, 2
je 0x437f3a
xor ebx, ebx
test ecx, ecx
jne 0x437f34
mov eax, dword [esi + 4]
test eax, eax
je 0x437f4d
inc dword [esi]
dec eax
mov dword [esi + 4], eax
inc ebx
cmp ebx, 1
jbe 0x437f23
xor edx, edx
test ecx, ecx
sete dl
lea ebx, [edx + edx*2 - 3]
mov dword [esi + 0x38], ebx
jmp 0x437da1
call fcn.00441617
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 0x437f9f
mov dword [esi + 0x3c], 1
mov ecx, dword [esi + 0x40]
test byte [ecx + 0xc], 0x20
je 0x437f98
mov dword [esi + 0x38], 0xffffffff
mov ecx, 1
jmp 0x437f34
mov edi, dword [esi + 0x44]
mov ecx, dword [esi + 0x3c]
mov dword [esi], edi
jmp 0x437f2e
call fcn.00441617
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 0x438001
mov dword [esi + 0x3c], 1
mov ebx, dword [esi + 0x40]
test byte [ebx + 0xc], 0x20
je 0x437ff4
mov dword [esi + 0x38], 0xffffffff
mov ecx, dword [esi + 0x3c]
mov edx, 0xffffffff
jmp 0x437f15
mov ecx, dword [esi + 0x44]
mov dword [esi], ecx
mov ecx, dword [esi + 0x3c]
jmp 0x437f09
call fcn.00441617
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 0x438066
mov dword [esi + 0x3c], 1
mov ecx, dword [esi + 0x40]
test byte [ecx + 0xc], 0x20
je 0x438059
mov dword [esi + 0x38], 0xffffffff
mov ecx, dword [esi + 0x3c]
mov edx, 0xffffffff
jmp 0x437ee6
mov ebx, dword [esi + 0x44]
mov ecx, dword [esi + 0x3c]
mov dword [esi], ebx
jmp 0x437eda
call fcn.00441617
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 0x4380b4
mov ecx, dword [esi + 0x44]
mov dword [esi], ecx
mov ecx, dword [esi + 0x3c]
jmp 0x437eaf
mov dword [esi + 0x3c], 1
mov ebx, dword [esi + 0x40]
test byte [ebx + 0xc], 0x20
je 0x4380cb
mov dword [esi + 0x38], 0xffffffff
mov ecx, dword [esi + 0x3c]
jmp 0x437ebe
call fcn.00441617
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 0x43812b
mov dword [esi + 0x3c], 1
mov ecx, dword [esi + 0x40]
test byte [ecx + 0xc], 0x20
je 0x43811e
mov dword [esi + 0x38], 0xffffffff
mov ecx, dword [esi + 0x3c]
mov edx, 0xffffffff
jmp 0x437e95
mov ecx, dword [esi + 0x44]
mov dword [esi], ecx
mov ecx, dword [esi + 0x3c]
jmp 0x437e89
call fcn.00441617
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 0x438190
mov dword [esi + 0x3c], 1
mov ecx, dword [esi + 0x40]
test byte [ecx + 0xc], 0x20
je 0x438183
mov dword [esi + 0x38], 0xffffffff
mov ecx, dword [esi + 0x3c]
mov ebx, 0xffffffff
jmp 0x437e75
mov ebx, dword [esi + 0x44]
mov ecx, dword [esi + 0x3c]
mov dword [esi], ebx
jmp 0x437e69
call fcn.00441617
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 0x4381f2
mov dword [esi + 0x3c], 1
mov edx, dword [esi + 0x40]
test byte [edx + 0xc], 0x20
je 0x4381e8
mov dword [esi + 0x38], 0xffffffff
mov ecx, 1
jmp 0x437e47
mov ecx, dword [esi + 0x44]
mov dword [esi], ecx
mov ecx, dword [esi + 0x3c]
jmp 0x437e41
call fcn.00441617
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 0x438254
mov dword [esi + 0x3c], 1
mov edx, dword [esi + 0x40]
test byte [edx + 0xc], 0x20
je 0x43824a
mov dword [esi + 0x38], 0xffffffff
mov edi, 0xffffffff
jmp 0x437e14
mov edi, dword [esi + 0x44]
mov dword [esi], edi
jmp 0x437e08
call fcn.00441617
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 0x4382b6
mov dword [esi + 0x3c], 1
mov ecx, dword [esi + 0x40]
test byte [ecx + 0xc], 0x20
je 0x4382a9
mov dword [esi + 0x38], 0xffffffff
mov ecx, dword [esi + 0x3c]
mov ebx, 0xffffffff
jmp 0x437df4
mov ebx, dword [esi + 0x44]
mov ecx, dword [esi + 0x3c]
mov dword [esi], ebx
jmp 0x437de9