Function at 0x405ca0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x475f68
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x49f4a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x38], esi
xorps xmm0, xmm0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov eax, edi
cmp dword [edi + 0x14], 0x10
jb 0x405d09
mov eax, dword [edi]
push 0x491c8c
push eax
call fcn.0045605b
add esp, 8
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x405d7a
push str.Error:_Could_not_open_file
push 0x4a4a80
call fcn.0040a4a0
mov ecx, dword [edi + 0x10]
add esp, 8
cmp dword [edi + 0x14], 0x10
jb 0x405d3b
mov edi, dword [edi]
push ecx
push edi
push eax
call fcn.0040b560
push eax
call fcn.0040a770
mov dword [esi], 0
add esp, 0x10
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
jmp 0x405efc
mov edi, dword [ebp - 0x44]
lea eax, [ebp - 0x20]
push edi
push 1
push 4
push eax
call fcn.0045919e
push edi
push 1
lea eax, [ebp - 0x38]
push 4
push eax
call fcn.0045919e
push edi
push 1
lea eax, [ebp - 0x3c]
push 4
push eax
call fcn.0045919e
push dword [ebp - 0x3c]
call fcn.004595cb
add esp, 0x34
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x405dd9
push str.Memory_allocation_error
push 0x4a4a80
call fcn.0040a4a0
push eax
call fcn.0040a770
push edi
call fcn.00456431
jmp 0x405d49
push edi
push 1
push dword [ebp - 0x3c]
push eax
call fcn.0045919e
push edi
call fcn.00456431
add esp, 0x14
mov dword [ebp - 0x24], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x34]
movups xmmword [ebp - 0x34], xmm0
call fcn.00428e50
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 1
push eax
call fcn.00403d10
add esp, 4
mov edi, dword [ebp - 0x44]
mov byte [ebp - 4], 2
push dword [eax]
lea eax, [ebp - 0x34]
push edi
push eax
call fcn.00404d50
mov ecx, eax
call fcn.00429280
test al, al
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x50]
sete al
mov byte [ebp - 0x3d], al
test edx, edx
je 0x405e74
mov ecx, dword [ebp - 0x48]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x405e67
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405f21
push ecx
push edx
call fcn.0042bbf9
mov al, byte [ebp - 0x3d]
add esp, 8
test al, al
je 0x405eac
push str.Decompression_failed
push 0x4a4a80
call fcn.0040a4a0
push eax
call fcn.0040a770
push edi
call fcn.00458cfb
add esp, 0x10
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
jmp 0x405edf
imul eax, dword [ebp - 0x38], 0xff
mov ecx, dword [ebp - 0x34]
push dword [ebp - 0x20]
add eax, ecx
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0040bbd0
push edi
call fcn.00458cfb
mov eax, dword [ebp - 0x1c]
add esp, 4
mov dword [esi], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 8], eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
call fcn.00428ec0
lea ecx, [ebp - 0x1c]
call fcn.004088d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042bbb8
mov esp, ebp
pop ebp
ret
call fcn.00455e0a
int3