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

Disassembly:
push ecx
push ebx
mov ebx, dword [0x6b4220]
mov eax, dword [ebx + 0x20]
push ebp
xor ebp, ebp
test eax, eax
push esi
push edi
mov dword [0x6b4254], ebp
je 0x4af1da
cmp eax, dword [ebx + 0x24]
je 0x4af1da
push 0x6513d0
add ebx, 0x50
push ebx
call fcn.0059f606
add esp, 8
test eax, eax
mov dword [0x6b4254], eax
je 0x4af3bc
mov ecx, dword [0x6b4220]
xor edi, edi
cmp dword [ecx + 0x24], edi
lea esi, [ecx + 0x158]
jbe 0x4af1b7
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.005a13d9
movzx eax, word [esi]
mov edx, dword [0x6b4220]
lea ecx, [eax + eax + 3]
mov eax, dword [0x6b4254]
shr ecx, 2
add edi, 1
add esp, 0x10
cmp edi, dword [edx + 0x24]
lea esi, [esi + ecx*4 + 0x70]
jb 0x4af178
push eax
call fcn.0059f7da
mov ebx, dword [0x6b4220]
mov eax, dword [ebx + 0x20]
xor ebp, ebp
add esp, 4
add dword [ebx + 0x24], eax
mov eax, dword [ebx + 0x24]
mov dword [0x6b4254], ebp
mov dword [ebx + 0x20], eax
xor edi, edi
cmp word [ebx + 0x34], di
je 0x4af1ee
cmp word [ebx + 0x36], 0xffff
je 0x4af3bc
mov eax, dword [ebx + 0x24]
lea ecx, [eax + eax*4]
add ecx, ecx
add ecx, ecx
push ecx
call fcn.005a0b1e
add esp, 4
cmp eax, edi
mov dword [0x6b4258], eax
je 0x4af3bc
cmp dword [ebx + 0x20], edi
je 0x4af237
push 0x641fa4
add ebx, 0x50
push ebx
call fcn.0059f606
mov ebx, dword [0x6b4220]
mov ebp, eax
mov eax, dword [0x6b4258]
add esp, 8
mov dword [0x6b4254], ebp
cmp dword [ebx + 0x24], edi
lea esi, [ebx + 0x158]
mov dword [esp + 0x10], edi
jbe 0x4af328
lea ebx, [ebx]
test ebp, ebp
je 0x4af2c1
push ebp
call fcn.005a1e04
mov edx, dword [0x6b4258]
mov dword [edi + edx], eax
mov eax, dword [0x6b4254]
push eax
push 1
push 0x70
push esi
call fcn.005a210e
add esp, 0x14
cmp eax, 1
jne 0x4af2a8
movzx ecx, word [esi]
mov edx, dword [0x6b4254]
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.005a210e
add esp, 0x10
cmp eax, 1
jb 0x4af381
mov ebp, dword [0x6b4254]
mov ebx, dword [0x6b4220]
mov eax, dword [0x6b4258]
jmp 0x4af2ce
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 0x4af311
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 0x4af250
mov edx, dword [ebx + 0x24]
push 0x4aeff0
push 0x14
push edx
push eax
call fcn.0059ef50
mov esi, dword [0x6b4258]
mov eax, dword [0x6b4220]
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 [0x6b4248], ebx
mov dword [0x6b424c], ebp
jbe 0x4af3d2
cmp dword [edx + 4], 0x7fffffff
je 0x4af3c4
mov edi, dword [edx]
cmp edi, ebx
jge 0x4af375
mov ebx, edi
add ecx, 1
add edx, 0x14
cmp ecx, eax
jb 0x4af364
jmp 0x4af3cc
mov edx, dword [0x6b4254]
push edx
call fcn.0059f7da
mov eax, dword [0x6b4220]
add esp, 4
add eax, 0x50
xor esi, esi
push eax
mov dword [0x6b4254], esi
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov ecx, dword [0x6b4258]
push ecx
call fcn.005a01b3
add esp, 4
mov dword [0x6b4258], esi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov ebp, ecx
mov dword [0x6b424c], ebp
mov dword [0x6b4248], ebx
lea ecx, [ebp*4]
push ecx
call fcn.005a0b1e
mov ebx, 1
add esp, 4
cmp ebp, ebx
mov dword [0x6b425c], eax
mov dword [eax], 0
mov dword [0x6b4250], ebx
mov edi, ebx
jbe 0x4af462
fld qword [0x655790]
add esi, 0x1c
fld qword [0x655768]
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 0x4af426
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.005a3c30
cmp ebp, eax
jle 0x4af44a
mov edx, dword [0x6b425c]
mov dword [edx + ebx*4], edi
add ebx, 1
add edi, 1
add esi, 0x14
cmp edi, dword [0x6b424c]
jb 0x4af40d
fstp st(1)
mov dword [0x6b4250], ebx
fstp st(0)
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret