Function at 0x40e405
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x48a024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x78], edx
push edi
push 0x478ab0
push eax
mov dword [ebp - 0x70], ecx
or edi, 0xffffffff
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x64], esi
call fcn.0044d34b
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x40e45c
xor esi, esi
inc esi
jmp 0x40e8e8
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40e476
push esi
push eax
push ebx
call fcn.0044ce61
add esp, 0xc
test eax, eax
jne 0x40e856
push ebx
push 0x20
lea eax, [ebp - 0x2c]
push 1
push eax
call fcn.0044e164
add esp, 0x10
cmp eax, 0x20
jb 0x40e856
lea eax, [ebp - 0x2c]
cmp dword [eax], 0x49445342
jne 0x40e856
cmp dword [eax + 4], 0x30344646
jne 0x40e856
lea ecx, [ebp - 0x24]
call fcn.0040e3d7
mov edx, eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x44], edx
call fcn.0040e3d7
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x3c], eax
call fcn.0040e3d7
mov dword [ebp - 0x4c], eax
test edx, edx
js 0x40e856
cmp dword [ebp - 0x3c], esi
jl 0x40e856
test eax, eax
js 0x40e856
push ebx
call fcn.0044c145
pop ecx
test eax, eax
jne 0x40e454
mov edi, dword [ebp - 0x40]
push 0x478ab0
push edi
call fcn.0044d34b
pop ecx
pop ecx
mov ecx, eax
mov dword [ebp - 0x5c], ecx
test ecx, ecx
je 0x40e454
mov ebx, dword [ebp + 0xc]
push esi
lea eax, [ebx + 0x20]
push eax
push ecx
call fcn.0044ce61
add esp, 0xc
test eax, eax
je 0x40e531
xor esi, esi
inc esi
jmp 0x40e8a2
mov edx, dword [ebp - 0x5c]
lea ecx, [ebp - 0x48]
sub esp, 0x10
call fcn.00410095
mov dword [ebp - 0x50], eax
test eax, eax
je 0x40e529
push 0x478ab0
push edi
call fcn.0044d34b
pop ecx
pop ecx
mov ecx, eax
mov dword [ebp - 0x60], ecx
test ecx, ecx
je 0x40e86c
mov eax, dword [ebp - 0x44]
add eax, 0x20
push esi
add eax, ebx
push eax
push ecx
call fcn.0044ce61
add esp, 0xc
test eax, eax
jne 0x40e86f
mov edx, dword [ebp - 0x60]
lea ecx, [ebp - 0x40]
sub esp, 0x10
call fcn.00410095
mov dword [ebp - 0x54], eax
test eax, eax
je 0x40e86c
push 0x478ab0
push edi
call fcn.0044d34b
mov edi, eax
mov dword [ebp - 0x68], edi
pop ecx
pop ecx
test edi, edi
je 0x40e86c
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x44]
add ecx, 0x20
add eax, ecx
push esi
add eax, ebx
push eax
push edi
call fcn.0044ce61
add esp, 0xc
test eax, eax
jne 0x40e86c
sub esp, 0x10
lea ecx, [ebp - 0x3c]
mov edx, edi
call fcn.00410095
mov ebx, eax
mov dword [ebp - 0x58], ebx
test ebx, ebx
je 0x40e86c
push esi
push 0x8000
push dword [ebp - 0x70]
call fcn.0044bd6b
mov edi, eax
add esp, 0xc
test edi, edi
js 0x40e85d
push 2
push esi
push edi
call fcn.0044d6a5
mov ebx, eax
add esp, 0xc
mov dword [ebp - 0x70], ebx
cmp ebx, 0xffffffff
je 0x40e85d
lea ecx, [ebx + 1]
push ecx
call fcn.00445d23
mov dword [ebp - 0x6c], eax
pop ecx
test eax, eax
je 0x40e85d
push esi
push esi
push edi
call fcn.0044d6a5
add esp, 0xc
test eax, eax
jne 0x40e85d
push ebx
push dword [ebp - 0x6c]
push edi
call fcn.0044c6c8
add esp, 0xc
cmp eax, ebx
jne 0x40e85d
push edi
call fcn.0044cefe
pop ecx
cmp eax, 0xffffffff
je 0x40e85d
mov edi, dword [ebp - 0x4c]
lea eax, [edi + 1]
push eax
call fcn.00445d23
mov dword [ebp - 0x64], eax
pop ecx
test eax, eax
je 0x40e86c
mov dword [ebp - 0x44], esi
mov ebx, esi
test edi, edi
jle 0x40e780
mov edi, esi
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 0xc]
push 8
push eax
lea ecx, [ebp - 0x48]
call fcn.004101c7
cmp eax, 8
jl 0x40e86c
cmp dword [ebp - 0x48], 0
je 0x40e6bb
cmp dword [ebp - 0x48], 4
jne 0x40e86c
lea ecx, [ebp - 0xc]
call fcn.0040e3d7
mov dword [ebp + edi*4 - 0x38], eax
inc edi
cmp edi, 2
jle 0x40e691
mov edi, dword [ebp - 0x38]
lea eax, [edi + ebx]
mov dword [ebp - 0x74], eax
cmp eax, dword [ebp - 0x4c]
jg 0x40e86c
add ebx, dword [ebp - 0x64]
lea ecx, [ebp - 0x40]
mov edx, dword [ebp - 0x54]
push edi
push ebx
call fcn.004101c7
cmp eax, edi
jl 0x40e86c
cmp dword [ebp - 0x40], 0
je 0x40e707
cmp dword [ebp - 0x40], 4
jne 0x40e86c
mov edx, dword [ebp - 0x44]
mov ecx, esi
test edi, edi
jle 0x40e72f
mov esi, dword [ebp - 0x6c]
lea eax, [ecx + edx]
test eax, eax
js 0x40e728
cmp eax, dword [ebp - 0x70]
jge 0x40e728
lea eax, [ecx + edx]
mov al, byte [eax + esi]
add byte [ebx + ecx], al
inc ecx
cmp ecx, edi
jl 0x40e713
xor esi, esi
mov eax, dword [ebp - 0x74]
add edx, edi
mov edi, dword [ebp - 0x34]
mov dword [ebp - 0x44], edx
lea ebx, [edi + eax]
cmp ebx, dword [ebp - 0x4c]
jg 0x40e86c
add eax, dword [ebp - 0x64]
lea ecx, [ebp - 0x3c]
mov edx, dword [ebp - 0x58]
push edi
push eax
call fcn.004101c7
cmp eax, edi
jl 0x40e86c
cmp dword [ebp - 0x3c], 0
je 0x40e76e
cmp dword [ebp - 0x3c], 4
jne 0x40e86c
mov eax, dword [ebp - 0x44]
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x44], eax
cmp ebx, dword [ebp - 0x4c]
jl 0x40e68f
mov edx, dword [ebp - 0x50]
lea ecx, [ebp - 0x48]
call fcn.00410176
cmp dword [ebp - 0x48], 0
jne 0x40e86c
mov edx, dword [ebp - 0x54]
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x50], esi
call fcn.00410176
cmp dword [ebp - 0x40], 0
je 0x40e7b1
xor esi, esi
inc esi
jmp 0x40e880
mov edx, dword [ebp - 0x58]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x54], esi
call fcn.00410176
cmp dword [ebp - 0x3c], 0
je 0x40e7cd
xor esi, esi
inc esi
jmp 0x40e891
push dword [ebp - 0x5c]
mov dword [ebp - 0x58], esi
call fcn.0044c145
pop ecx
test eax, eax
je 0x40e7e5
xor esi, esi
inc esi
jmp 0x40e8b0
push dword [ebp - 0x60]
mov dword [ebp - 0x5c], esi
call fcn.0044c145
pop ecx
test eax, eax
je 0x40e7fd
xor esi, esi
inc esi
jmp 0x40e8be
mov ecx, dword [ebp - 0x68]
push ecx
mov dword [ebp - 0x60], esi
call fcn.0044c145
pop ecx
test eax, eax
je 0x40e816
xor esi, esi
inc esi
jmp 0x40e8cc
push 0x180
push 0x8301
push dword [ebp - 0x78]
mov dword [ebp - 0x68], esi
call fcn.0044bd6b
mov edi, eax
add esp, 0xc
test edi, edi
js 0x40e85d
mov ebx, dword [ebp - 0x4c]
push ebx
push dword [ebp - 0x64]
push edi
call fcn.0044dc91
add esp, 0xc
cmp eax, ebx
jne 0x40e85d
push edi
call fcn.0044cefe
pop ecx
cmp eax, 0xffffffff
jne 0x40e8cc
jmp 0x40e85d
push ebx
call fcn.0044c145
pop ecx
xor esi, esi
inc esi
cmp edi, 0xffffffff
je 0x40e86f
push edi
call fcn.0044cefe
pop ecx
xor esi, esi
inc esi
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x40e880
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.00410176
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x40e891
mov edx, eax
lea ecx, [ebp - 0x40]
call fcn.00410176
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x40e8a2
mov edx, eax
lea ecx, [ebp - 0x3c]
call fcn.00410176
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x40e8b0
push eax
call fcn.0044c145
pop ecx
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x40e8be
push eax
call fcn.0044c145
pop ecx
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x40e8cc
push eax
call fcn.0044c145
pop ecx
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x40e8da
push eax
call fcn.00445d2e
pop ecx
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x40e8e8
push eax
call fcn.00445d2e
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043fc0b
leave
ret