Function at 0x4a9e08
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xb
push 0
push 0
dec ecx
jne 0x4a9e11
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406ba0
xor eax, eax
push ebp
push 0x4aa070
push dword fs:[eax]
mov dword fs:[eax], esp
test byte [esi + 0xe], 0x20
je 0x4a9e47
cmp byte [esi + 4], 0
jne 0x4a9e7a
cmp dword [edi + 8], 0
jle 0x4a9e7a
movzx ebx, word [edi + 8]
dec ebx
test bx, bx
jb 0x4a9e7a
inc ebx
mov word [ebp - 0xe], 0
movzx edx, word [ebp - 0xe]
mov eax, edi
call fcn.004a9444
mov edx, dword [ebp - 4]
call fcn.004a3c10
inc word [ebp - 0xe]
dec bx
jne 0x4a9e5e
test byte [esi + 0xe], 0x20
je 0x4aa00b
cmp dword [edi + 8], 0
jle 0x4aa00b
lea ecx, [ebp - 0xc]
mov dl, 5
mov eax, esi
call fcn.004a0224
lea ecx, [ebp - 0x1c]
mov dl, 5
mov eax, esi
call fcn.004a034c
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 8]
mov ecx, dword [ebp - 0xc]
call fcn.00404f88
mov eax, dword [ebp - 8]
call fcn.00405100
push eax
call sub.kernel32.dll_DeleteFileA
push 0xffff
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x419830]
call fcn.0041edd0
mov dword [ebp - 0x14], eax
cmp byte [esi + 4], 0
je 0x4a9f2e
mov ecx, dword [ebp - 0x14]
mov dl, 1
mov eax, dword [0x4802c4]
call fcn.00480400
mov dword [ebp - 0x18], eax
cmp dword [edi + 8], 0
jle 0x4a9f24
movzx ebx, word [edi + 8]
dec ebx
test bx, bx
jb 0x4a9f24
inc ebx
mov word [ebp - 0xe], 0
movzx edx, word [ebp - 0xe]
mov eax, edi
call fcn.004a9444
mov edx, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x10]
inc word [ebp - 0xe]
dec bx
jne 0x4a9f08
mov eax, dword [ebp - 0x18]
call fcn.00403d64
jmp 0x4a9f91
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x4aa084
call fcn.00405664
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
call fcn.00404ef8
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [0x4199b0]
call fcn.0041f230
mov ebx, eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov edx, ebx
mov eax, dword [ebp - 0x14]
call fcn.0041ebb8
mov eax, ebx
call fcn.00403d64
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
call dword [edx + 0x20]
lea ecx, [ebp - 0x40]
mov dl, 5
mov eax, esi
call fcn.004a0508
lea eax, [ebp - 0x40]
mov edx, dword [ebp - 0xc]
call fcn.00404f3c
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
call fcn.00415a04
lea ecx, [ebp - 0x3c]
mov edx, 0x4aa0dc
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x58]
lea eax, [ebp - 0x54]
push eax
mov eax, 0x4aa0f0
mov dword [ebp - 0x5c], eax
mov eax, 0x4aa0fc
mov dword [ebp - 0x58], eax
lea edx, [ebp - 0x5c]
movzx eax, byte [esi + 4]
mov ecx, 1
call fcn.004819c4
mov edx, dword [ebp - 0x54]
lea eax, [ebp - 0x50]
call fcn.00415a04
lea ecx, [ebp - 0x50]
mov edx, 0x4aa10c
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x58]
mov eax, dword [ebp - 0x14]
call fcn.00403d64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aa077
lea eax, [ebp - 0x54]
call fcn.00404c70
lea eax, [ebp - 0x50]
call fcn.00411294
lea eax, [ebp - 0x40]
call fcn.00404c70
lea eax, [ebp - 0x3c]
call fcn.00411294
lea eax, [ebp - 0x2c]
call fcn.00406b2c
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00405468
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00404c94
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404c94
lea eax, [ebp - 4]
call fcn.00406b2c
ret