Function at 0x446b80
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x515b54
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x5566e0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
call fcn.004c2ca4
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x446bc6
push 0x80004005
call fcn.00404150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov dword [esp + 0x50], 0
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
mov edi, 0x401
sub eax, edi
or eax, ecx
jge 0x446c02
push edi
lea ecx, [esp + 0x18]
call fcn.00405200
mov esi, dword [esp + 0x14]
cmp dword [esi - 8], edi
jge 0x446c11
push 0x80070057
call fcn.00404150
push 0x400
push esi
mov dword [esi - 0xc], edi
push 0
mov byte [esi + 0x401], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp dword [esi - 4], 1
jle 0x446c40
mov ecx, dword [esi - 0xc]
push ecx
lea ecx, [esp + 0x18]
call fcn.00405430
mov esi, dword [esp + 0x14]
push 0x5c
push esi
call fcn.004e2fb0
sub eax, esi
add esp, 8
add eax, 1
push eax
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x1c]
call fcn.00404c00
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x54], 1
call fcn.00404e60
mov byte [esp + 0x50], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x446c93
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0xa
push str.config.dat
lea ecx, [esp + 0x1c]
call fcn.0041b2d0
lea ecx, [esp + 0x2c]
push ecx
call fcn.00467c00
mov byte [esp + 0x50], 2
mov edi, dword [esp + 0x14]
lea ebx, [edi - 0x10]
push ebx
call fcn.00405250
add eax, 0x10
add esp, 4
mov dword [esp + 0x18], eax
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0x54], 3
call fcn.004681d0
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x446d82
sub esp, 0x18
mov ecx, esp
mov dword [esp + 0x38], esp
push ecx
lea ecx, [esp + 0x48]
call fcn.00446620
push 1
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x4c]
mov byte [esp + 0x70], 4
call fcn.004686b0
mov ecx, dword [eax]
push ecx
mov esi, ecx
mov ecx, esp
mov dword [esp + 0x48], esp
mov dword [eax], 0
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], ecx
mov dword [ecx], 0
mov byte [esp + 0x70], 7
mov eax, dword [esi]
test eax, eax
je 0x446d40
mov dword [ecx], eax
mov edx, dword [eax]
push eax
mov eax, dword [edx + 4]
call eax
push esi
mov byte [esp + 0x74], 5
call fcn.0046a2c0
push esi
call fcn.004c1fcb
add esp, 4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
mov byte [esp + 0x74], 8
call fcn.004466c0
mov byte [esp + 0x50], 3
mov eax, dword [esp + 0x1c]
test eax, eax
mov esi, eax
je 0x446d82
push eax
call fcn.0046a2c0
push esi
call fcn.004c1fcb
add esp, 4
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, edi
lea edx, [esp + 0x2c]
call fcn.004687d0
lea edi, [esp + 0x2c]
call fcn.00468460
mov byte [esp + 0x50], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x446dc6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x2c]
push ecx
mov byte [esp + 0x54], 0
call fcn.00467c90
mov dword [esp + 0x50], 0xffffffff
lea edx, [ebx + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x446df6
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4