Function at 0x481360
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x624363
mov eax, dword fs:[0]
push eax
sub esp, 0x1f8
mov eax, dword [0x6e4770]
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 dword [ebp - 0xc0], ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xb0], ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xb8], ebx
test ebx, ebx
je 0x481933
cmp dword [ebx + 0x208], 0
je 0x481924
mov dword [ebp - 0xd4], 0
lea eax, [ebx + 0x234]
mov ecx, dword [ebx + 0x218]
movzx esi, word [eax]
mov dword [ebp - 0xbc], eax
push 0x3e
lea eax, [ecx + 1]
mov dword [ebp - 0xc4], ecx
imul eax, esi
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xc8], eax
xor al, al
mov byte [ebp - 0xa9], al
xor eax, eax
push eax
mov word [ebp - 0x184], ax
lea eax, [ebp - 0x182]
push eax
call fcn.0052f1e0
push 0x40
lea eax, [ebp - 0x144]
push 0
push eax
call fcn.0052f1e0
xor eax, eax
mov byte [ebp - 0xaa], 0
push 0x3e
push eax
mov word [ebp - 0x204], ax
lea eax, [ebp - 0x202]
push eax
call fcn.0052f1e0
push 0x40
lea eax, [ebp - 0x1c4]
push 0
push eax
call fcn.0052f1e0
xor edi, edi
add esp, 0x30
mov dword [ebp - 0xb4], edi
mov dword [ebp - 0xd0], edi
mov dword [ebp - 0xfc], edi
mov dword [ebp - 0xf8], edi
mov dword [ebp - 0xf4], edi
mov edx, dword [ebx + 0x214]
shr esi, 2
imul esi, edx
mov dword [ebp - 4], edi
mov byte [ebp - 0xab], 0
test esi, esi
je 0x481747
mov edi, dword [ebp - 0xc4]
xor ebx, ebx
mov edi, edi
cmp byte [0x6f2444], 1
je 0x481920
test edi, edi
js 0x481712
mov eax, dword [ebp - 0xbc]
movzx eax, word [eax]
shr eax, 2
imul eax, edx
cmp edi, eax
jle 0x4814dc
push str.SAT_index_out_of_bounds._n
call fcn.004812b0
add esp, 4
mov byte [ebp - 0xab], 1
mov esi, dword [ebp - 0xb0]
push 0
push 0
push dword [ebp - 0xc8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [ebp - 0xab], 0
mov ecx, dword [ebp - 0xb8]
jne 0x48151c
mov eax, dword [ecx + 0x208]
mov edx, dword [eax + edi*4]
movzx eax, word [ecx + 0x234]
inc edx
imul edx, eax
mov dword [ebp - 0xc8], edx
mov ax, word [ecx + 0x234]
mov edx, 0xff80
and ax, dx
mov dword [ebp - 0xbc], 0
xor edx, edx
cmp dx, ax
jae 0x4816b7
cmp byte [0x6f2444], 1
je 0x481920
push 0
lea eax, [ebp - 0xd4]
push eax
push 0x80
lea eax, [ebp - 0xa8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0xd4], 0x80
jb 0x481708
mov al, byte [ebp - 0x66]
test al, al
je 0x48168c
cmp al, 5
jne 0x4815a7
mov ecx, 0x20
mov byte [ebp - 0xa9], 1
lea esi, [ebp - 0xa8]
lea edi, [ebp - 0x184]
rep movsd dword es:[edi], dword [esi]
jmp 0x481686
cmp byte [ebp - 0xaa], 0
jne 0x4815e9
push 0x20
lea eax, [ebp - 0xa8]
push str.Catalog
push eax
call fcn.005316fb
add esp, 0xc
test eax, eax
jne 0x4815e9
mov ecx, 0x20
mov byte [ebp - 0xaa], 1
lea esi, [ebp - 0xa8]
lea edi, [ebp - 0x204]
rep movsd dword es:[edi], dword [esi]
jmp 0x481686
push 0x28
call fcn.0052f54b
push 0x40
mov esi, eax
call fcn.0052f54b
push 0x1f
lea ecx, [ebp - 0xa8]
mov dword [esi + 0x18], eax
push ecx
push 0x20
push eax
call fcn.00531731
push 8
lea eax, [ebp - 0x3c]
push eax
lea eax, [esi + 8]
push 8
push eax
call fcn.005303b3
mov eax, dword [ebp - 0x34]
xor ecx, ecx
mov dword [esi + 0x1c], eax
add esp, 0x28
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x20], eax
mov al, byte [ebp - 0x66]
mov byte [esi + 0x24], al
mov byte [esi + 0x25], 0
mov eax, dword [ebp - 0xb8]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0xb8]
mov word [eax + 0x236], cx
mov eax, dword [esi + 0x10]
mov byte [eax + 0x238], cl
mov eax, dword [esi + 0x10]
inc dword [eax + 0x230]
mov eax, dword [ebp - 0xd0]
mov dword [esi + 0x14], ecx
mov dword [esi], ecx
mov dword [esi + 4], ecx
test eax, eax
je 0x481678
mov dword [eax + 0x14], esi
jmp 0x481680
mov ebx, esi
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0xd0], esi
mov esi, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0xb8]
mov edx, dword [ebp - 0xbc]
inc edx
mov dword [ebp - 0xbc], edx
movzx eax, word [ecx + 0x234]
shr eax, 7
cmp edx, eax
jl 0x481540
mov edi, dword [ebp - 0xc4]
cmp byte [ebp - 0xab], 1
je 0x481894
mov eax, dword [ecx + 0x208]
mov edx, dword [ecx + 0x214]
mov esi, dword [ebp - 0xcc]
inc esi
mov edi, dword [eax + edi*4]
lea eax, [ecx + 0x234]
mov dword [ebp - 0xbc], eax
movzx eax, word [eax]
shr eax, 2
imul eax, edx
mov dword [ebp - 0xc4], edi
mov dword [ebp - 0xcc], esi
cmp esi, eax
jb 0x4814a0
jmp 0x481894
push str.Premature_end_of_file_encountered_while_building_the_directory._n
jmp 0x481886
cmp edi, 0xfffffffe
jne 0x481881
mov edi, dword [ebp - 0xb4]
test edi, edi
je 0x48173a
mov eax, dword [edi + 0x10]
mov byte [eax + 0x238], 3
mov ecx, dword [ebp - 0xb8]
jmp 0x48189a
push str.No_entries_were_found._n
call fcn.004812b0
add esp, 4
lea eax, [ebp - 0xb8]
push eax
call fcn.00483170
add esp, 4
mov ecx, dword [ebp - 0xc0]
mov eax, dword [ecx + 0x18]
lea ebx, [ecx + 0x18]
mov esi, dword [eax]
cmp esi, eax
je 0x481790
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x481775
mov eax, dword [ecx]
push 1
call dword [eax]
push esi
lea eax, [ebp - 0xd8]
mov ecx, ebx
push eax
call fcn.004a9cf0
mov esi, dword [eax]
cmp esi, dword [ebx]
jne 0x481768
mov ecx, dword [ebp - 0xc0]
test edi, edi
je 0x481b78
jmp 0x4817a0
lea eax, [ebp - 0xb0]
mov dword [ebp - 0xe0], 0
push eax
lea eax, [ebp - 0xe0]
mov dword [ebp - 0xb0], 0
push eax
mov esi, edi
push edi
mov dword [ebp - 0xd8], esi
call fcn.004821f0
mov ebx, eax
test ebx, ebx
je 0x481b50
mov cl, byte [edi + 0x25]
shr cl, 1
and cl, 1
mov dword [ebp - 0xd0], 0
test byte [edi + 0x25], 8
mov byte [ebp - 0xc8], cl
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xcc], 0
je 0x4819a4
mov eax, dword [ebp - 0xb0]
cmp eax, 0x18
jne 0x48193a
push 4
lea eax, [ebx + 8]
push eax
lea eax, [ebp - 0xcc]
push 4
push eax
call fcn.005303b3
mov eax, dword [ebp - 0xb0]
add eax, 0xfffffff4
push 4
add eax, ebx
push eax
lea eax, [ebp - 0xd0]
push 4
push eax
call fcn.005303b3
mov eax, dword [ebp - 0xb0]
add eax, 0xfffffff8
push 4
add eax, ebx
push eax
lea eax, [ebp - 0xbc]
push 4
push eax
call fcn.005303b3
mov byte [ebp - 0xc8], 2
jmp 0x481982
push str.Invalid_SAT_termination_index._n
call fcn.004812b0
mov ecx, dword [ebp - 0xb8]
add esp, 4
mov edi, dword [ebp - 0xb4]
test edi, edi
je 0x481747
mov al, byte [ebp - 0xa9]
mov ebx, dword [ebp - 0xb0]
cmp al, 1
jne 0x4818de
push ecx
sub esp, 0x80
lea esi, [ebp - 0x184]
mov edi, esp
mov ecx, 0x20
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0xc0]
push ebx
call fcn.00481ff0
cmp al, 2
je 0x481933
mov edi, dword [ebp - 0xb4]
cmp byte [ebp - 0xaa], 1
jne 0x481756
sub esp, 0x80
lea esi, [ebp - 0x204]
mov edi, esp
mov ecx, 0x20
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0xc0]
push edi
push ebx
call fcn.00482b60
cmp al, 2
jne 0x481756
jmp 0x481b7a
test ebx, ebx
jne 0x481933
lea eax, [ebp - 0xb8]
push eax
call fcn.00483170
add esp, 4
mov al, 2
jmp 0x481b7a
cmp eax, 0x34
jne 0x48198b
push 4
lea eax, [ebx + 4]
push eax
lea eax, [ebp - 0xd0]
push 4
push eax
call fcn.005303b3
push 4
lea eax, [ebx + 8]
push eax
lea eax, [ebp - 0xbc]
push 4
push eax
call fcn.005303b3
push 4
lea eax, [ebx + 0xc]
push eax
lea eax, [ebp - 0xcc]
push 4
push eax
call fcn.005303b3
mov byte [ebp - 0xc8], 3
mov eax, dword [ebp - 0xb0]
add esp, 0x30
add eax, 0xfffffffc
push 4
add eax, ebx
push eax
lea eax, [ebp - 0xdc]
push 4
push eax
call fcn.005303b3
add esp, 0x10
mov edx, dword [edi + 0x18]
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [edx], ax
jne 0x4819c4
xor ecx, ecx
jmp 0x4819df
mov ecx, edx
lea esi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4819d0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00470470
mov esi, dword [ebp - 0xc0]
mov byte [ebp - 4], 1
mov esi, dword [esi + 0x18]
mov eax, esi
mov dword [ebp - 0xc4], eax
mov edi, dword [eax + 4]
cmp byte [edi + 0xd], 0
jne 0x481a4b
jmp 0x481a10
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
lea ecx, [edi + 0x10]
push eax
push dword [ecx + 0x10]
push 0
call fcn.004766b0
test eax, eax
jns 0x481a3b
mov edi, dword [edi + 8]
mov eax, dword [ebp - 0xc4]
jmp 0x481a45
mov eax, edi
mov edi, dword [edi]
mov dword [ebp - 0xc4], eax
cmp byte [edi + 0xd], 0
je 0x481a10
mov edi, dword [ebp - 0xc0]
cmp eax, dword [edi + 0x18]
je 0x481a8b
mov ecx, dword [eax + 0x20]
add eax, 0x10
cmp dword [eax + 0x14], 8
jb 0x481a64
mov eax, dword [eax]
push ecx
push eax
push dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
push 0
call fcn.004766b0
test eax, eax
js 0x481a8b
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0xe8], eax
lea eax, [ebp - 0xe8]
jmp 0x481a9a
mov eax, dword [edi + 0x18]
mov dword [ebp - 0xe4], eax
lea eax, [ebp - 0xe4]
cmp dword [eax], esi
mov byte [ebp - 4], 0
sete al
cmp dword [ebp - 0x14], 8
mov byte [ebp - 0xa9], al
jb 0x481ac0
push dword [ebp - 0x28]
call fcn.0052d900
mov al, byte [ebp - 0xa9]
add esp, 4
test al, al
je 0x481b3b
push dword [ebp - 0xcc]
mov eax, dword [ebp - 0xb0]
push dword [ebp - 0xdc]
add eax, ebx
push dword [ebp - 0xbc]
push dword [ebp - 0xd0]
push dword [ebp - 0xc8]
push dword [ebp - 0xe0]
push eax
call fcn.004831c0
mov edi, dword [ebp - 0xb4]
add esp, 0x1c
mov esi, dword [ebp - 0xc0]
mov dword [ebp - 0xec], eax
lea eax, [ebp - 0xf0]
mov ecx, dword [edi + 0x18]
mov dword [ebp - 0xf0], ecx
lea ecx, [esi + 0x18]
push eax
call fcn.00481060
push eax
add eax, 0x10
lea ecx, [esi + 0x18]
push eax
push 0
lea eax, [ebp - 0x104]
push eax
call fcn.0049c420
jmp 0x481b41
mov edi, dword [ebp - 0xb4]
push ebx
call fcn.0052ee15
mov esi, dword [ebp - 0xd8]
add esp, 4
mov edi, dword [edi + 0x14]
push dword [esi + 0x18]
mov dword [ebp - 0xb4], edi
call fcn.0052ee15
push esi
call fcn.0052ee15
mov ecx, dword [ebp - 0xc0]
add esp, 8
test edi, edi
jne 0x4817a0
mov al, 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.0052dfa4
mov esp, ebp
pop ebp
ret 8