Function at 0x4136b8
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
xor edx, edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 4], edx
lea eax, [ebp - 0xc]
mov edx, dword [0x40d450]
call fcn.00406ee4
xor eax, eax
push ebp
push 0x413ab2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x424268]
mov eax, dword [eax]
mov dl, 1
call fcn.0040964c
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x413a7e
cmp word [0x427d82], 0
je 0x41372c
lea eax, [ebp - 0xc]
xor ecx, ecx
mov edx, 8
call fcn.004044d0
mov byte [ebp - 0xc], 0
lea edx, [ebp - 0xc]
mov eax, dword [0x427d84]
call dword [0x427d80]
mov byte [0x427d60], 1
xor edx, edx
push ebp
push 0x413a77
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x413ad0
mov eax, dword [0x424268]
push dword [eax]
push 0x413ad0
push 0x413ae0
push 0x413b18
push 0x413b2c
push 0x413b18
lea eax, [ebp - 0x24]
push eax
mov eax, dword [0x427d5c]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0
lea edx, [ebp - 0x2c]
xor ecx, ecx
mov eax, 0x413b58
call fcn.0040a0b8
push dword [ebp - 0x24]
push 0x413b80
lea eax, [ebp - 4]
mov edx, 9
call fcn.00406c1c
mov eax, dword [0x424290]
cmp byte [eax], 0
je 0x4137be
push dword [ebp - 4]
push 0x413b18
push 0x413b98
lea eax, [ebp - 4]
mov edx, 3
call fcn.00406c1c
mov eax, dword [0x424250]
cmp byte [eax], 0
je 0x4137e2
push dword [ebp - 4]
push 0x413b18
push 0x413bbc
lea eax, [ebp - 4]
mov edx, 3
call fcn.00406c1c
mov eax, dword [0x42427c]
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4137f8
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x413827
push dword [ebp - 4]
push 0x413b18
push 0x413be4
push 0x413c10
mov eax, dword [0x42427c]
push dword [eax]
push 0x413ad0
lea eax, [ebp - 4]
mov edx, 6
call fcn.00406c1c
mov eax, dword [0x424258]
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x41383d
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x41386c
push dword [ebp - 4]
push 0x413b18
push 0x413c24
push 0x413c10
mov eax, dword [0x424258]
push dword [eax]
push 0x413ad0
lea eax, [ebp - 4]
mov edx, 6
call fcn.00406c1c
mov eax, dword [0x42424c]
cmp byte [eax], 0
jne 0x4138f1
push dword [ebp - 4]
push 0x413b18
push 0x413c48
push 0x413b18
push 0x413c64
push 0x413c84
lea edx, [ebp - 0x34]
mov eax, dword [0x427d7c]
call fcn.004092f0
push dword [ebp - 0x34]
push 0x413c9c
mov eax, dword [0x424274]
push dword [eax]
lea eax, [ebp - 4]
mov edx, 9
call fcn.00406c1c
mov eax, dword [0x424260]
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4138d1
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x4138f1
push dword [ebp - 4]
push 0x413cb4
mov eax, dword [0x424260]
push dword [eax]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00406c1c
mov eax, dword [0x424260]
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x413907
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x413936
push dword [ebp - 4]
push 0x413b18
push 0x413cc4
push 0x413c10
mov eax, dword [0x424260]
push dword [eax]
push 0x413ad0
lea eax, [ebp - 4]
mov edx, 6
call fcn.00406c1c
mov eax, dword [0x424284]
cmp byte [eax], 0
je 0x41395a
push dword [ebp - 4]
push 0x413b18
push 0x413ce4
lea eax, [ebp - 4]
mov edx, 3
call fcn.00406c1c
mov eax, dword [0x424280]
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x413970
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x41399f
push dword [ebp - 4]
push 0x413b18
push 0x413d10
push 0x413c10
mov eax, dword [0x424280]
push dword [eax]
push 0x413ad0
lea eax, [ebp - 4]
mov edx, 6
call fcn.00406c1c
mov edx, 0x413d24
mov eax, dword [0x40cdd4]
call fcn.0040d128
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.0040a9c8
mov byte [ebp - 0xd], al
mov edx, 0x413d6c
mov eax, dword [0x40cdd4]
call fcn.0040d128
cmp byte [ebp - 0xd], 0
je 0x413a20
xor eax, eax
push ebp
push 0x413a19
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xffffffffffffffff
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_WaitForSingleObject
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413a20
mov edx, 0x413dc4
mov eax, dword [0x40cdd4]
call fcn.0040d128
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413a7e
mov eax, dword [0x424268]
mov eax, dword [eax]
call fcn.00406994
push eax
call sub.kernel32.dll_DeleteFileW
mov edx, 0x413e18
mov eax, dword [0x40cdd4]
call fcn.0040d128
cmp word [0x427d82], 0
je 0x413a6f
mov byte [ebp - 0xc], 1
mov byte [ebp - 0xb], 0x64
lea edx, [ebp - 0xc]
mov eax, dword [0x427d84]
call dword [0x427d80]
mov byte [0x427d60], 0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413ab9
lea eax, [ebp - 0x34]
call fcn.00406394
lea eax, [ebp - 0x24]
call fcn.00406394
lea eax, [ebp - 0xc]
mov edx, dword [0x40d450]
call fcn.00406fbc
lea eax, [ebp - 4]
call fcn.00406394
ret