Function at 0x401480
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
test esi, esi
push edi
jne 0x40149f
lea eax, [ebx - 0x66]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14]
add eax, dword [esi + 0xc]
mov ecx, dword [esi]
push 0
push eax
push ecx
call fcn.004371a3
add esp, 0xc
test eax, eax
je 0x4014bc
or ebx, 0xffffffff
jmp 0x4014e3
mov edi, dword [esi]
lea edx, [esp + 0x10]
push edx
call fcn.00401090
add esp, 4
test eax, eax
je 0x4014d4
or ebx, 0xffffffff
jmp 0x4014e3
cmp dword [esp + 0x10], 0x2014b50
je 0x4014e3
mov ebx, 0xffffff99
mov edi, dword [esi]
lea eax, [esp + 0x18]
push eax
call section..text
add esp, 4
test eax, eax
je 0x4014f9
or ebx, 0xffffffff
mov edi, dword [esi]
lea ecx, [esp + 0x1c]
push ecx
call section..text
add esp, 4
test eax, eax
je 0x40150f
or ebx, 0xffffffff
mov edi, dword [esi]
lea edx, [esp + 0x20]
push edx
call section..text
add esp, 4
test eax, eax
je 0x401525
or ebx, 0xffffffff
mov edi, dword [esi]
lea eax, [esp + 0x24]
push eax
call section..text
add esp, 4
test eax, eax
je 0x40153b
or ebx, 0xffffffff
mov edi, dword [esi]
lea ecx, [esp + 0x28]
push ecx
call fcn.00401090
add esp, 4
test eax, eax
je 0x401551
or ebx, 0xffffffff
mov ecx, dword [esp + 0x28]
mov edi, dword [esi]
mov eax, ecx
shr eax, 0x10
mov edx, eax
and edx, 0x1f
mov dword [esp + 0x5c], edx
mov edx, eax
shr eax, 9
and eax, 0x7f
shr edx, 5
add eax, 0x7bc
and edx, 0xf
mov dword [esp + 0x64], eax
sub edx, 1
mov eax, ecx
mov dword [esp + 0x60], edx
shr eax, 0xb
mov edx, ecx
and eax, 0x1f
mov dword [esp + 0x58], eax
shr edx, 5
and ecx, 0x1f
lea eax, [esp + 0x2c]
and edx, 0x3f
add ecx, ecx
push eax
mov dword [esp + 0x58], edx
mov dword [esp + 0x54], ecx
call fcn.00401090
add esp, 4
test eax, eax
je 0x4015b8
or ebx, 0xffffffff
mov edi, dword [esi]
lea ecx, [esp + 0x30]
push ecx
call fcn.00401090
add esp, 4
test eax, eax
je 0x4015ce
or ebx, 0xffffffff
mov edi, dword [esi]
lea edx, [esp + 0x34]
push edx
call fcn.00401090
add esp, 4
test eax, eax
je 0x4015e4
or ebx, 0xffffffff
mov edi, dword [esi]
lea eax, [esp + 0x38]
push eax
call section..text
add esp, 4
test eax, eax
je 0x4015fa
or ebx, 0xffffffff
mov edi, dword [esi]
lea ecx, [esp + 0x3c]
push ecx
call section..text
add esp, 4
test eax, eax
je 0x401610
or ebx, 0xffffffff
mov edi, dword [esi]
lea edx, [esp + 0x40]
push edx
call section..text
add esp, 4
test eax, eax
je 0x401626
or ebx, 0xffffffff
mov edi, dword [esi]
lea eax, [esp + 0x44]
push eax
call section..text
add esp, 4
test eax, eax
je 0x40163c
or ebx, 0xffffffff
mov edi, dword [esi]
lea ecx, [esp + 0x48]
push ecx
call section..text
add esp, 4
test eax, eax
je 0x401652
or ebx, 0xffffffff
mov edi, dword [esi]
lea edx, [esp + 0x4c]
push edx
call fcn.00401090
add esp, 4
test eax, eax
je 0x401668
or ebx, 0xffffffff
mov edi, dword [esi]
lea eax, [esp + 0x14]
push eax
call fcn.00401090
add esp, 4
test eax, eax
je 0x40167e
or ebx, 0xffffffff
test ebx, ebx
mov esi, dword [esp + 0x38]
jne 0x401735
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4016c9
mov ecx, dword [ebp + 0x18]
cmp esi, ecx
jae 0x40169f
mov byte [esi + eax], bl
mov edi, esi
jmp 0x4016a1
mov edi, ecx
test esi, esi
jbe 0x4016c3
test ecx, ecx
jbe 0x4016c3
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
push 1
push edi
push eax
call fcn.004231b4
add esp, 0x10
cmp eax, 1
je 0x4016c3
or ebx, 0xffffffff
sub esi, edi
test ebx, ebx
jne 0x401735
cmp dword [ebp + 0x1c], 0
je 0x401735
mov edi, dword [esp + 0x3c]
mov eax, dword [ebp + 0x20]
cmp edi, eax
mov dword [esp + 0x10], edi
jb 0x4016e2
mov dword [esp + 0x10], eax
test esi, esi
je 0x401702
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push 1
push esi
push ecx
call fcn.004371a3
add esp, 0xc
test eax, eax
jne 0x4016ff
xor esi, esi
jmp 0x401702
or ebx, 0xffffffff
test edi, edi
jbe 0x40172d
cmp dword [ebp + 0x20], 0
jbe 0x40172d
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp + 0x1c]
push eax
push 1
push ecx
push edx
call fcn.004231b4
add esp, 0x10
cmp eax, 1
je 0x40172d
or ebx, 0xffffffff
sub edi, dword [esp + 0x10]
add esi, edi
jmp 0x401739
add esi, dword [esp + 0x3c]
test ebx, ebx
jne 0x4017d3
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x4017b4
mov edi, dword [esp + 0x40]
mov ecx, dword [ebp + 0x28]
cmp edi, ecx
jae 0x40175c
mov byte [edi + eax], bl
mov dword [esp + 0x10], edi
jmp 0x401760
mov dword [esp + 0x10], ecx
test esi, esi
je 0x40177c
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push 1
push esi
push ecx
call fcn.004371a3
add esp, 0xc
test eax, eax
je 0x40177c
or ebx, 0xffffffff
test edi, edi
jbe 0x4017b0
cmp dword [ebp + 0x28], 0
jbe 0x4017b0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp + 0x24]
push eax
push 1
push ecx
push edx
call fcn.004231b4
add esp, 0x10
cmp eax, 1
je 0x4017b0
or ebx, 0xffffffff
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
jne 0x4017d3
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4017c6
mov ecx, 0x14
lea esi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4017d3
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret