Function at 0x445e70
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x18]
xor eax, eax
xor ecx, ecx
mov ah, byte [esi + 8]
mov cl, byte [esi + 0xa]
mov al, byte [esi + 9]
xor edx, edx
mov dl, byte [esi + 0xb]
push edi
mov edi, dword [esp + 0x18]
push 0
shl eax, 8
or eax, ecx
push 0
shl eax, 8
or eax, edx
mov word [esp + 0x10], 0x130
push eax
push edi
mov word [esp + 0x1a], 0x148
mov word [esp + 0x1c], 0x394
mov word [esp + 0x1e], 0x3cb
mov word [esp + 0x20], 0x451
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor eax, eax
xor ecx, ecx
mov ah, byte [esi + 0xc]
mov cl, byte [esi + 0xe]
mov al, byte [esi + 0xd]
xor edx, edx
mov dl, byte [esi + 0xf]
shl eax, 8
or eax, ecx
shl eax, 8
or eax, edx
mov esi, eax
jne 0x445ef2
pop edi
xor eax, eax
pop esi
add esp, 0xc
ret 0xc
push ebp
push esi
call fcn.0044c0d4
add esp, 4
mov ebp, eax
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], ebp
push 0
push eax
push esi
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4460ca
cmp dword [esp + 0x20], esi
jne 0x4460ca
xor ecx, ecx
xor edx, edx
mov ch, byte [ebp + 2]
mov dl, byte [ebp + 3]
movsx ecx, cx
or ecx, edx
xor edi, edi
lea eax, [ebp + 4]
lea edx, [ecx*8 + 4]
cmp edx, esi
ja 0x4460d7
xor esi, esi
test ecx, ecx
jbe 0x4460d7
xor edx, edx
mov dh, byte [eax]
mov dl, byte [eax + 1]
cmp dx, 3
jne 0x445f6c
xor edx, edx
mov dh, byte [eax + 2]
mov dl, byte [eax + 3]
cmp dx, 1
je 0x445f79
add eax, 8
inc esi
cmp esi, ecx
jb 0x445f51
jmp 0x4460d7
xor ecx, ecx
xor edx, edx
mov ch, byte [eax + 4]
mov dl, byte [eax + 6]
mov cl, byte [eax + 5]
mov edi, 1
shl ecx, 8
or ecx, edx
xor edx, edx
mov dl, byte [eax + 7]
mov esi, 7
shl ecx, 8
or ecx, edx
add ecx, ebp
mov eax, ecx
xor edx, edx
mov dh, byte [eax]
mov dl, byte [eax + 1]
mov word [eax], dx
add eax, 2
dec esi
jne 0x445fa3
cmp word [ecx], 4
jne 0x4460d7
xor edi, edi
lea ebp, [ecx + 0xe]
mov di, word [ecx + 6]
mov eax, ebp
shr edi, 1
test edi, edi
jle 0x445fe0
mov ecx, edi
xor edx, edx
mov dh, byte [eax]
mov dl, byte [eax + 1]
mov word [eax], dx
add eax, 2
dec ecx
jne 0x445fd0
push ebx
lea ebx, [ebp + edi*2 + 2]
test edi, edi
mov eax, ebx
jle 0x445ffd
mov ecx, edi
xor edx, edx
mov dl, byte [eax + 1]
mov dh, byte [eax]
mov word [eax], dx
add eax, 2
dec ecx
jne 0x445fed
xor eax, eax
cmp edi, eax
mov dword [esp + 0x24], eax
jbe 0x4460b2
cmp eax, 5
jae 0x44605f
mov si, word [ebx]
lea ecx, [esp + eax*2 + 0x10]
cmp word [ecx], si
jae 0x446027
inc eax
add ecx, 2
cmp eax, 5
jb 0x446017
jmp 0x44604c
cmp eax, 5
jae 0x44604c
lea ecx, [esp + eax*2 + 0x10]
mov dx, word [ecx]
cmp dx, si
jb 0x44604c
cmp dx, word [ebp]
ja 0x44604c
mov word [ecx], 0
inc eax
add ecx, 2
cmp eax, 5
jb 0x446030
mov ecx, dword [esp + 0x24]
add ebx, 2
add ebp, 2
inc ecx
cmp ecx, edi
mov dword [esp + 0x24], ecx
jb 0x44600b
cmp word [esp + 0x10], 0
mov ecx, dword [esp + 0x28]
jne 0x446073
mov eax, dword [ecx + 0x5c]
or al, 0x40
mov dword [ecx + 0x5c], eax
cmp word [esp + 0x12], 0
mov eax, 0x80
jne 0x446083
or dword [ecx + 0x5c], eax
cmp word [esp + 0x14], 0
jne 0x446094
mov edx, dword [ecx + 0x5c]
or dh, 1
mov dword [ecx + 0x5c], edx
cmp word [esp + 0x16], 0
jne 0x44609f
or dword [ecx + 0x54], eax
cmp word [esp + 0x18], 0
jne 0x4460b6
mov eax, dword [ecx + 0x54]
or ah, 2
mov dword [ecx + 0x54], eax
jmp 0x4460b6
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + 0x54]
mov ebp, dword [esp + 0x20]
mov edi, 1
pop ebx
or eax, edi
mov dword [ecx + 0x54], eax
jmp 0x4460d7
push ebp
call fcn.0044c186
mov edi, dword [esp + 0x28]
add esp, 4
test ebp, ebp
je 0x4460e4
push ebp
call fcn.0044c186
add esp, 4
mov eax, edi
pop ebp
pop edi
pop esi
add esp, 0xc
ret 0xc