Function at 0x5947f0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x474
mov eax, dword [0x64e0a0]
xor eax, esp
mov dword [esp + 0x470], eax
push ebx
push esi
lea eax, [esp + 0x50]
mov dword [esp + 0x44], eax
push edi
lea eax, [esp + 0x48]
push eax
movzx eax, byte [0x65c1e4]
push eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x54], 0x104
mov dword [esp + 0x58], 0
call fcn.005b0e80
add esp, 8
sub eax, 0
je 0x59492f
dec eax
je 0x594882
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x54]
cmp eax, ecx
je 0x594a06
test eax, eax
je 0x594a06
push eax
call fcn.00541b50
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.00541b41
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x48]
xor esi, esi
push esi
push 0x80
push 2
push esi
push 7
push 0xc0000000
push edi
mov dword [esp + 0x58], esi
call dword [0x649010]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x59490b
lea ebx, [ebx]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x5948c0
cmp eax, 2
jne 0x594902
test esi, esi
jle 0x594902
mov eax, esi
cmp esi, 0xc8
jl 0x5948d3
mov eax, 0xc8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x80
push 2
push 0
push 7
push 0xc0000000
push edi
sub esi, 0xc8
call dword [0x649010]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x5948b0
jmp 0x59490b
lea eax, [ebx + 1]
neg eax
sbb eax, eax
and ebx, eax
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x54]
cmp eax, ecx
je 0x594924
test eax, eax
je 0x594924
push eax
call fcn.00541b50
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x594a02
push dword [esp + 0x48]
lea eax, [esp + 0x34]
xor ebx, ebx
push eax
xor esi, esi
mov dword [esp + 0x40], ebx
call fcn.0041e890
lea eax, [esp + 0x30]
mov dword [esp + 0x18], 0x18
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], 0x40
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
lea esp, [esp]
push 0
push 0
push 0x20
push 5
push 7
push 0x80
push 0
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x38]
push eax
push 0xc0100080
lea eax, [esp + 0x3c]
push eax
call fcn.0041edd6
mov edi, eax
test edi, edi
jns 0x5949d2
cmp edi, 0xc0000043
je 0x5949b0
cmp edi, 0xc000000f
jne 0x5949d2
test esi, esi
jle 0x5949d2
mov eax, esi
cmp esi, 0xc8
jl 0x5949c3
mov eax, 0xc8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esi, 0xc8
jmp 0x594970
push edi
call fcn.0041e908
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
push eax
call esi
test edi, edi
js 0x5949e9
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x54]
cmp eax, ecx
je 0x594a02
test eax, eax
je 0x594a02
push eax
call fcn.00541b50
add esp, 4
test ebx, ebx
jne 0x594a1d
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.00541b41
mov esp, ebp
pop ebp
ret
cmp byte [0x65c1e4], 0
push ebx
je 0x594a37
call fcn.0041e90e
push eax
call fcn.0041e908
push eax
call esi
jmp 0x594a3d
call dword [0x649008]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x26c]
mov dword [esp + 0x260], eax
lea eax, [esp + 0x260]
push eax
movzx eax, byte [0x65c1e4]
push eax
mov dword [esp + 0x26c], 0x104
mov dword [esp + 0x270], 0
call fcn.005b0e80
add esp, 8
sub eax, 0
je 0x594aae
dec eax
je 0x594a98
mov eax, dword [esp + 0x260]
lea ecx, [esp + 0x26c]
jmp 0x594852
push dword [esp + 0x260]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb esi, esi
neg esi
dec esi
jmp 0x594abc
mov ecx, dword [esp + 0x260]
call fcn.005b23d0
mov esi, eax
mov eax, dword [esp + 0x260]
lea ecx, [esp + 0x26c]
cmp eax, ecx
je 0x594adb
test eax, eax
je 0x594adb
push eax
call fcn.00541b50
add esp, 4
cmp esi, 0xffffffff
je 0x594a06
mov ecx, dword [esp + 0x47c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00541b41
mov esp, ebp
pop ebp
ret