Function at 0x431980
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51c186
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x56617c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x64]
push 0x44
push 0
push eax
mov dword [ebp - 0x68], esi
call fcn.005001b0
add esp, 0xc
lea ecx, [ebp - 0x64]
call fcn.0041ad80
cmp dword [ebp - 0x2c], 0
mov dword [ebp - 0x64], vtable.CStringUTF8.0
je 0x4319e3
lea ecx, [ebp - 0x30]
call fcn.0041a760
mov dword [ebp - 0x28], 0xffffffff
mov dword [ebp - 0x24], 0xffffffff
cmp byte [ebp + 0xc], 0
mov dword [ebp - 4], 0
je 0x431a02
or dword [edi + 0x10], 2
cmp byte [ebp + 0x10], 0
je 0x431a0e
or dword [edi + 0x10], 4
jmp 0x431a12
and dword [edi + 0x10], 0xfffffffb
push esi
lea ecx, [ebp - 0xcc]
call fcn.0041a6c0
push 0
push 0
push 3
push 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xcc]
mov eax, dword [ebp - 0xcc]
push 1
push SysReAllocStringLen
call dword [eax + 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 4], eax
lea ebx, [edi + 8]
lea ecx, [ebp - 0xcc]
cmp eax, 0xffffffff
jne 0x431a7b
mov dword [edi + 4], 0
mov byte [ebp - 4], 0
call fcn.0041c2a0
mov eax, dword [edi + 0x10]
shr eax, 2
test al, 1
jne 0x431d3c
jmp 0x431b22
mov dword [ebx], 0
mov dword [edi + 0xc], 0
call fcn.0041c2a0
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push 0
push ebx
push 4
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 2
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x431b31
mov eax, dword [edi + 0x10]
shr eax, 2
test al, 1
jne 0x431d80
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x431b22
mov edx, dword [ebp - 0x14]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x431b03
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x431dd9
push edx
push ecx
call fcn.004fe28b
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x64]
call fcn.0041c2a0
xor eax, eax
jmp 0x431d1e
mov ebx, dword [ebp - 0x18]
mov esi, ebx
mov edx, dword [ebp - 0x1c]
sub esi, edx
mov ecx, dword [ebp - 0x20]
cmp ecx, esi
jae 0x431b4a
lea eax, [edx + ecx]
mov dword [ebp - 0x18], eax
jmp 0x431b7b
jbe 0x431b7b
mov eax, dword [ebp - 0x14]
sub eax, edx
cmp ecx, eax
jbe 0x431b61
push ecx
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00432cd0
jmp 0x431b75
sub ecx, esi
push ecx
push 0
push ebx
lea esi, [ebx + ecx]
call fcn.005001b0
add esp, 0xc
mov dword [ebp - 0x18], esi
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
push 0
lea eax, [edi + 8]
push eax
push ecx
push edx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x431dc4
mov eax, dword [ebp - 0x18]
xor ebx, ebx
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
je 0x431ca2
push 0x52d978
push 0x1c
call fcn.004feae3
mov esi, eax
add esp, 8
mov dword [ebp - 0x6c], esi
test esi, esi
je 0x431bd6
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi], 0
jmp 0x431be6
mov eax, dword [edi + 0x10]
xor esi, esi
shr eax, 2
test al, 1
jne 0x431cd3
mov eax, dword [ebp - 0x1c]
mov ecx, esi
add eax, ebx
push eax
call fcn.004314e0
mov edx, dword [esi + 4]
add ebx, eax
mov ecx, edx
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0xf
mov byte [ebp - 0x88], 0
lea eax, [ecx + 1]
mov dword [ebp - 0x6c], eax
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x431c20
sub ecx, dword [ebp - 0x6c]
push ecx
push edx
lea ecx, [ebp - 0x88]
call fcn.0041bc00
mov dword [ebp - 0x70], esi
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0xd4]
push eax
lea ecx, [edi + 0xac]
call fcn.00432b80
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x74]
cmp edx, 0x10
jb 0x431c92
mov ecx, dword [ebp - 0x88]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x431c88
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x431dd9
push edx
push ecx
call fcn.004fe28b
add esp, 8
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
cmp ebx, eax
jb 0x431ba4
or dword [edi + 0x10], 1
mov byte [ebp - 4], 0
test ecx, ecx
je 0x431ce5
mov edx, dword [ebp - 0x14]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x431cdb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x431dd9
jmp 0x431cdb
push dword [ebp - 0x68]
jmp 0x431d81
push edx
push ecx
call fcn.004fe28b
add esp, 8
push dword [ebp - 0x68]
lea ecx, [ebp - 0xcc]
call fcn.0041a9d0
lea eax, [ebp - 0xcc]
mov byte [ebp - 4], 4
push eax
lea ecx, [edi + 0x68]
call fcn.0041a900
lea ecx, [ebp - 0xcc]
call fcn.0041c2a0
lea ecx, [ebp - 0x64]
call fcn.0041c2a0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fe27d
mov esp, ebp
pop ebp
ret 0xc
push esi
push str.File_not_found._n_s
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.004e78b0
add esp, 0x10
lea ecx, [ebp - 0xcc]
call fcn.0041aac0
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0xcc]
call fcn.00429ab0
push 0x563c54
lea eax, [ebp - 0xcc]
push eax
call fcn.004ffbbe
push esi
push str.Unable_to_read_archive_header_information._n_s
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.004e78b0
add esp, 0x10
lea ecx, [ebp - 0xcc]
call fcn.0041aac0
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0xcc]
call fcn.0041ca00
push 0x563d10
lea eax, [ebp - 0xcc]
push eax
call fcn.004ffbbe
push 0x563d00
lea eax, [ebp - 0x68]
mov dword [ebp - 0x68], str.Failed_to_read_file_information.
push eax
call fcn.004ffbbe
call fcn.00501acf
int3