Function at 0x438ea0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
mov esi, eax
cmp byte [esi + 0x12828], 0
push edi
jne 0x438ed5
mov ecx, dword [esi + 4]
push ecx
push 1
lea eax, [esi + 0xc]
push 4
push eax
call fcn.0047b8cf
add esp, 0x10
cmp eax, 1
jae 0x438f04
jmp fcn.00437af0
cmp dword [esi + 0x12844], 4
jae 0x438ee3
jmp fcn.00437af0
mov eax, dword [esi + 0x12848]
mov edx, dword [esi + 0x12840]
mov ecx, dword [eax + edx]
add eax, 4
mov dword [esi + 0xc], ecx
mov dword [esi + 0x1283c], ecx
mov dword [esi + 0x12848], eax
cmp dword [esi + 0xc], 0
je 0x4390f5
call fcn.00438690
mov edx, esi
call fcn.00437e90
push 0xfc4
lea eax, [esi + 0x18]
push 0x20
push eax
call fcn.0047c580
add esp, 0xc
cmp dword [esi + 0xc], 0
mov dword [esp + 0x10], 0xfc4
mov dword [esp + 0x14], 0
jbe 0x4390f5
call fcn.00438710
mov ebx, eax
cmp ebx, 0x100
jge 0x438fee
cmp byte [esi + 0x12828], 0
jne 0x438f72
mov eax, dword [esi + 8]
push eax
push ebx
call fcn.00478da6
add esp, 8
jmp 0x438fd0
mov eax, dword [esi + 0x12830]
test eax, eax
lea edi, [esi + 0x1282c]
mov byte [esp + 0xf], bl
jne 0x438f8a
xor edx, edx
jmp 0x438f8f
mov edx, dword [edi + 8]
sub edx, eax
test eax, eax
je 0x438fa9
mov ecx, dword [edi + 0xc]
sub ecx, eax
cmp edx, ecx
jae 0x438fa9
mov eax, dword [edi + 8]
mov byte [eax], bl
add eax, 1
mov dword [edi + 8], eax
jmp 0x438fd0
mov ecx, dword [edi + 8]
cmp eax, ecx
mov dword [esp + 0x1c], ecx
jbe 0x438fbd
call fcn.0047895e
mov ecx, dword [esp + 0x1c]
push ecx
push edi
lea ecx, [esp + 0x17]
push ecx
lea edx, [esp + 0x34]
push edx
mov eax, edi
call fcn.004394d0
mov eax, dword [esp + 0x10]
mov byte [esi + eax + 0x18], bl
add eax, 1
and eax, 0xfff
add dword [esp + 0x14], 1
mov dword [esp + 0x10], eax
jmp 0x4390d9
mov eax, esi
call fcn.004388a0
mov edi, dword [esp + 0x10]
sub edi, eax
sub edi, 1
add ebx, 0xffffff03
and edi, 0xfff
test ebx, ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], 0
jle 0x4390d9
add dword [esp + 0x14], ebx
mov eax, dword [esp + 0x18]
add eax, edi
and eax, 0xfff
cmp byte [esi + 0x12828], 0
movzx ebx, byte [eax + esi + 0x18]
jne 0x43904e
mov ecx, dword [esi + 8]
push ecx
push ebx
call fcn.00478da6
add esp, 8
jmp 0x4390b0
mov eax, dword [esi + 0x12830]
test eax, eax
lea edi, [esi + 0x1282c]
mov byte [esp + 0xf], bl
jne 0x439066
xor edx, edx
jmp 0x43906b
mov edx, dword [edi + 8]
sub edx, eax
test eax, eax
je 0x439085
mov ecx, dword [edi + 0xc]
sub ecx, eax
cmp edx, ecx
jae 0x439085
mov eax, dword [edi + 8]
mov byte [eax], bl
add eax, 1
mov dword [edi + 8], eax
jmp 0x4390ac
mov ecx, dword [edi + 8]
cmp eax, ecx
mov dword [esp + 0x20], ecx
jbe 0x439099
call fcn.0047895e
mov ecx, dword [esp + 0x20]
push ecx
push edi
lea edx, [esp + 0x17]
push edx
lea eax, [esp + 0x3c]
push eax
mov eax, edi
call fcn.004394d0
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
mov byte [esi + eax + 0x18], bl
add eax, 1
and eax, 0xfff
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
add eax, 1
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x18], eax
jl 0x439026
mov eax, dword [esi + 0x14]
mov ecx, dword [esp + 0x14]
cmp ecx, eax
jbe 0x4390ec
add eax, 0x400
mov dword [esi + 0x14], eax
cmp ecx, dword [esi + 0xc]
jb 0x438f47
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret