Function at 0x4122d0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x44851c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
push ebp
mov ebp, dword [esp + 0x230]
xor eax, eax
test ebp, ebp
mov dword [esp + 0xc], 1
je 0x4125b0
push ebx
push esi
push edi
mov ecx, 0x41
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x24]
push eax
call fcn.00409d80
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 4
push ebp
call ebx
test eax, eax
je 0x4125a9
push ebp
lea ecx, [esp + 0x14]
call fcn.00402470
push 3
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x23c], 0
call fcn.00405c40
mov ecx, dword [eax]
mov esi, dword [esp + 0x10]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
mov byte [esp + 0x234], 1
je 0x4123ba
mov edx, dword [esi + 0xc]
test edx, edx
lea edi, [esi + 0xc]
jl 0x4123ac
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4123ac
push eax
call fcn.004014e0
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x41239d
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
add ebx, 0x10
mov dword [esp + 0x10], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0x4123ba
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00401a70
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x234], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4123e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push ebp
lea eax, [esp + 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x24]
push ecx
call ebx
push eax
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x130]
push eax
call fcn.0043b7b8
add esp, 0xc
test eax, eax
je 0x412455
lea ecx, [esp + 0x24]
push ecx
call ebx
lea edx, [esp + 0x24]
mov cl, byte [eax + edx - 1]
dec edx
cmp cl, 0x5c
push ebp
je 0x41243a
lea eax, [esp + 0x28]
push eax
push 0x44bbe8
lea ecx, [esp + 0x134]
push ecx
jmp 0x41244c
lea edx, [esp + 0x28]
push edx
push 0x44bbd0
lea eax, [esp + 0x134]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0
push ebp
call fcn.00409f20
add esp, 8
test eax, eax
jne 0x41256e
lea ecx, [esp + 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
mov dword [esp + 0x18], eax
jne 0x4124ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0xfffffffe
cmp eax, 0x1e
ja case.0x412497.4
movzx edx, byte [eax + 0x4125fc]
jmp dword [edx*4 + 0x4125f4]
mov dword [esp + 0x18], 1
jmp 0x41256e
lea eax, [esp + 0x128]
push eax
lea ecx, [esp + 0x18]
call fcn.00402470
push 3
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x23c], 2
call fcn.00405c40
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x238], 3
call fcn.00401e30
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x234], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41250c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
push 0x44c86c
push eax
call fcn.0042de57
add esp, 8
test eax, eax
je 0x412538
mov ecx, dword [esp + 0x14]
push 0x44c868
push ecx
call fcn.0042de57
add esp, 8
test eax, eax
jne 0x412548
lea edx, [esp + 0x128]
push edx
call fcn.00411650
add esp, 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x234], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41256e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push ebp
call ebx
lea ebp, [eax + ebp + 1]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x234], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41259e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push ebp
call ebx
test eax, eax
jne 0x412331
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
pop ebp
mov dword fs:[0], ecx
add esp, 0x228
ret
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x234], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4125ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x4125ad