Function at 0x484640
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x563331
mov eax, dword fs:[0]
push eax
sub esp, 0x56c
mov eax, dword [0x5b7a9c]
xor eax, esp
mov dword [esp + 0x568], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b7a9c]
xor eax, esp
push eax
lea eax, [esp + 0x580]
mov dword fs:[0], eax
mov eax, dword [esp + 0x598]
mov edi, dword [esp + 0x590]
mov ebp, dword [esp + 0x594]
mov esi, ecx
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x324]
xor ebx, ebx
cmp eax, ebx
je 0x4846af
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x324], ebx
call fcn.0050830c
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4846c9
push 0x80004005
call fcn.00401350
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x588], ebx
cmp edi, ebx
je 0x4847a0
mov ecx, dword [edi + 0x628]
mov dword [esi + 0xf8], ecx
mov edx, dword [edi + 0x608]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.004060d0
mov edx, dword [0x5ec738]
mov ecx, dword [edx - 0xc]
add esp, 8
cmp ecx, ebx
jle 0x484765
mov eax, dword [edi + 0x660]
cmp dword [eax - 0xc], ebx
jge 0x48472a
push 0x80070057
call fcn.00401350
movzx eax, word [eax]
cmp ax, 0x2f
je 0x484765
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.00401fe0
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
cmp eax, ebx
jle 0x484765
dec eax
push eax
lea ecx, [esp + 0x18]
call fcn.00413190
cmp ax, 0x2f
je 0x484765
push 0x2f
lea ecx, [esp + 0x18]
call fcn.00405f80
mov eax, dword [edi + 0x660]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00401fe0
mov eax, dword [esp + 0x14]
push 0x3a
push eax
mov dword [esp + 0x20], eax
call fcn.00540fb2
add esp, 8
lea ebp, [eax + 2]
cmp eax, ebx
jne 0x484798
mov ebp, 0x57bd68
mov ebx, dword [edi + 0x608]
jmp 0x4847a7
mov ebx, dword [esp + 0x59c]
lea edi, [esi + 0x320]
push edi
call fcn.0047c3f0
mov edx, dword [esi + 0xb0]
mov eax, dword [edi]
add esp, 4
push 0
push 0
push eax
mov ecx, esi
mov dword [esp + 0x28], edx
mov dword [esi + 0xb0], 1
call fcn.00482e20
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0xb0], ecx
test eax, eax
je 0x4848c9
mov eax, dword [edi]
push ebp
push ebx
push eax
call fcn.00472100
xor eax, eax
add esp, 0xc
lea ecx, [esp + 0x20]
mov dword [esi + 0x294], eax
mov dword [esi + 0x290], eax
mov dword [esi + 0x2dc], eax
call fcn.00451e90
mov ecx, dword [esi + 0x2dc]
mov edx, dword [esi + 0x290]
mov eax, dword [esi + 0x294]
mov dword [esp + 0x24], ecx
push edi
lea ecx, [esp + 0x34]
mov byte [esp + 0x58c], 1
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
call fcn.00405fa0
xor ebx, ebx
cmp ebp, ebx
jne 0x484852
xor eax, eax
jmp 0x484866
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x484857
sub eax, edx
sar eax, 1
push eax
push ebp
lea ecx, [esp + 0x3c]
call fcn.00401e70
push ebx
lea ecx, [esp + 0x40]
call fcn.00446140
push ebx
push 1
push ebx
push ebx
push 1
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x54]
mov byte [esp + 0x5a0], 2
call fcn.00446070
mov ebp, eax
cmp dword [0x5ed76c], ebx
jne 0x4848ab
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp ebp, ebx
jne 0x48491c
lea ecx, [esp + 0x3c]
mov byte [esp + 0x588], 1
call fcn.00446270
lea ecx, [esp + 0x20]
call fcn.00451f80
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x588], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4848f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x580]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x568]
xor ecx, esp
call fcn.0053fa67
add esp, 0x578
ret 0x10
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
mov ebp, dword [esp + 0x18]
mov dword [esi + 0x290], ecx
push 0x208
lea ecx, [esp + 0x170]
push ecx
push ebp
mov dword [esi + 0x294], edx
mov dword [esi + 0x2dc], eax
mov dword [esi + 0xb0], 1
call fcn.00407130
add esp, 0xc
test eax, eax
je 0x48496b
lea edx, [esp + 0x16c]
mov ebp, edx
mov eax, dword [esi]
mov edx, dword [eax + 0x54]
push 1
push ebp
mov ecx, esi
call edx
mov ecx, esi
call fcn.00475660
cmp dword [esi + 0x60], ebx
je 0x4849d1
mov eax, dword [esi]
mov edx, dword [eax + 0x60]
mov ecx, esi
call edx
mov dword [esp + 0x1c], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x64]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call edx
cmp eax, ebx
je 0x4849d1
mov ecx, eax
call fcn.00503c1f
mov edi, eax
cmp edi, ebx
je 0x4849d1
mov eax, dword [esi]
mov edx, dword [eax + 0x58]
mov ecx, esi
call edx
mov ecx, dword [0x5ed04c]
neg eax
sbb eax, eax
neg eax
push eax
push edi
add ecx, 0x14fc
call fcn.004ceb40
mov dword [esi + 0x64], ebx
mov dword [esi + 0x94], ebx
mov dword [esi + 0x60], ebx
cmp dword [esi + 0xc0], ebx
je 0x4849f0
push ebx
push 1
push ebp
mov ecx, esi
call fcn.004845c0
mov eax, dword [esi]
mov edx, dword [eax + 0x60]
mov ecx, esi
call edx
mov dword [esp + 0x38], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x64]
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
call edx
cmp eax, ebx
je 0x484a2f
mov ecx, dword [esi + 0xf8]
mov edx, dword [esi + 0xf4]
push ebx
push 0xffffffffffffffff
push ecx
push edx
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
mov ecx, eax
call fcn.0048ad20
lea ecx, [esp + 0x3c]
mov byte [esp + 0x588], 1
call fcn.00446270
lea ecx, [esp + 0x20]
call fcn.00451f80
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x588], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x484a74
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x4848f2