Function at 0x4b1a80
Capabilities:
Delete file
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [0x6bcee8]
mov eax, dword [ebx + 0x20]
push ebp
xor ebp, ebp
test eax, eax
push esi
push edi
mov dword [0x6bcf1c], ebp
je 0x4b1b3a
cmp eax, dword [ebx + 0x24]
je 0x4b1b3a
push 0x658ef8
add ebx, 0x50
push ebx
call fcn.005a6c42
add esp, 8
test eax, eax
mov dword [0x6bcf1c], eax
je 0x4b1d1c
mov ecx, dword [0x6bcee8]
xor edi, edi
cmp dword [ecx + 0x24], edi
lea esi, [ecx + 0x158]
jbe 0x4b1b17
push eax
movzx eax, word [esi]
lea ecx, [eax + eax + 3]
shr ecx, 2
lea edx, [ecx*4 + 0x70]
push edx
push 1
push esi
call fcn.005a8c68
movzx eax, word [esi]
mov edx, dword [0x6bcee8]
lea ecx, [eax + eax + 3]
mov eax, dword [0x6bcf1c]
shr ecx, 2
add edi, 1
add esp, 0x10
cmp edi, dword [edx + 0x24]
lea esi, [esi + ecx*4 + 0x70]
jb 0x4b1ad8
push eax
call fcn.005a6e16
mov ebx, dword [0x6bcee8]
mov eax, dword [ebx + 0x20]
xor ebp, ebp
add esp, 4
add dword [ebx + 0x24], eax
mov eax, dword [ebx + 0x24]
mov dword [0x6bcf1c], ebp
mov dword [ebx + 0x20], eax
xor edi, edi
cmp word [ebx + 0x34], di
je 0x4b1b4e
cmp word [ebx + 0x36], 0xffff
je 0x4b1d1c
mov eax, dword [ebx + 0x24]
lea ecx, [eax + eax*4]
add ecx, ecx
add ecx, ecx
push ecx
call fcn.005a854a
add esp, 4
cmp eax, edi
mov dword [0x6bcf20], eax
je 0x4b1d1c
cmp dword [ebx + 0x20], edi
je 0x4b1b97
push 0x649a48
add ebx, 0x50
push ebx
call fcn.005a6c42
mov ebx, dword [0x6bcee8]
mov ebp, eax
mov eax, dword [0x6bcf20]
add esp, 8
mov dword [0x6bcf1c], ebp
cmp dword [ebx + 0x24], edi
lea esi, [ebx + 0x158]
mov dword [esp + 0x10], edi
jbe 0x4b1c88
lea ebx, [ebx]
test ebp, ebp
je 0x4b1c21
push ebp
call fcn.005a9537
mov edx, dword [0x6bcf20]
mov dword [edi + edx], eax
mov eax, dword [0x6bcf1c]
push eax
push 1
push 0x70
push esi
call fcn.005a9841
add esp, 0x14
cmp eax, 1
jne 0x4b1c08
movzx ecx, word [esi]
mov edx, dword [0x6bcf1c]
lea eax, [ecx + ecx + 3]
shr eax, 2
push edx
lea eax, [eax*4 + 0x70]
add eax, 0xffffff90
push 1
push eax
lea eax, [esi + 0x70]
push eax
call fcn.005a9841
add esp, 0x10
cmp eax, 1
jb 0x4b1ce1
mov ebp, dword [0x6bcf1c]
mov ebx, dword [0x6bcee8]
mov eax, dword [0x6bcf20]
jmp 0x4b1c2e
mov ecx, esi
sub ecx, ebx
sub ecx, 0x158
mov dword [edi + eax], ecx
test ebp, ebp
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
mov dword [edi + eax + 4], ecx
mov dword [edi + eax + 8], edx
movzx edx, word [esi + 0xc]
mov word [edi + eax + 0xc], dx
movzx ecx, word [esi]
mov word [edi + eax + 0xe], cx
movzx edx, word [esi + 0x68]
mov word [edi + eax + 0x10], dx
movzx ecx, word [esi + 2]
mov word [edi + eax + 0x12], cx
jne 0x4b1c71
movzx edx, word [esi]
lea ecx, [edx + edx + 3]
shr ecx, 2
lea esi, [esi + ecx*4 + 0x70]
mov ecx, dword [esp + 0x10]
add ecx, 1
add edi, 0x14
cmp ecx, dword [ebx + 0x24]
mov dword [esp + 0x10], ecx
jb 0x4b1bb0
mov edx, dword [ebx + 0x24]
push 0x4b1950
push 0x14
push edx
push eax
call fcn.005a6820
mov esi, dword [0x6bcf20]
mov eax, dword [0x6bcee8]
mov eax, dword [eax + 0x24]
mov ebx, dword [esi + 4]
lea edx, [esi + 4]
add esp, 0x10
mov ebp, eax
xor ecx, ecx
test eax, eax
mov dword [0x6bcf10], ebx
mov dword [0x6bcf14], ebp
jbe 0x4b1d32
cmp dword [edx + 4], 0x7fffffff
je 0x4b1d24
mov edi, dword [edx]
cmp edi, ebx
jge 0x4b1cd5
mov ebx, edi
add ecx, 1
add edx, 0x14
cmp ecx, eax
jb 0x4b1cc4
jmp 0x4b1d2c
mov edx, dword [0x6bcf1c]
push edx
call fcn.005a6e16
mov eax, dword [0x6bcee8]
add esp, 4
add eax, 0x50
xor esi, esi
push eax
mov dword [0x6bcf1c], esi
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov ecx, dword [0x6bcf20]
push ecx
call fcn.005a8a7b
add esp, 4
mov dword [0x6bcf20], esi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov ebp, ecx
mov dword [0x6bcf14], ebp
mov dword [0x6bcf10], ebx
lea ecx, [ebp*4]
push ecx
call fcn.005a854a
mov ebx, 1
add esp, 4
cmp ebp, ebx
mov dword [0x6bcf24], eax
mov dword [eax], 0
mov dword [0x6bcf18], ebx
mov edi, ebx
jbe 0x4b1dc2
fld qword [0x65d248]
add esi, 0x1c
fld qword [0x65d220]
movzx edx, word [esi - 0x10]
movzx ecx, word [esi + 4]
mov eax, dword [esi - 0x14]
sub eax, dword [esi]
cmp edx, ecx
mov dword [esp + 0x10], edx
jl 0x4b1d86
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
cdq
mov ebp, eax
xor ebp, edx
fmul st(2)
sub ebp, edx
fadd st(1)
call fcn.005ab4c0
cmp ebp, eax
jle 0x4b1daa
mov edx, dword [0x6bcf24]
mov dword [edx + ebx*4], edi
add ebx, 1
add edi, 1
add esi, 0x14
cmp edi, dword [0x6bcf14]
jb 0x4b1d6d
fstp st(1)
mov dword [0x6bcf18], ebx
fstp st(0)
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret