Function at 0x4491a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d28d4
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x629560]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
call fcn.004d4991
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4491e6
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 0x449222
push edi
lea ecx, [esp + 0x18]
call fcn.00405360
mov esi, dword [esp + 0x14]
cmp dword [esi - 8], edi
jge 0x449231
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 0x449260
mov ecx, dword [esi - 0xc]
push ecx
lea ecx, [esp + 0x18]
call fcn.00405590
mov esi, dword [esp + 0x14]
push 0x5c
push esi
call fcn.004f4ca0
sub eax, esi
add esp, 8
add eax, 1
push eax
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x1c]
call fcn.00404d30
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x54], 1
call fcn.00404f90
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 0x4492b3
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.0041cc20
lea ecx, [esp + 0x2c]
push ecx
call fcn.00475540
mov byte [esp + 0x50], 2
mov edi, dword [esp + 0x14]
lea ebx, [edi - 0x10]
push ebx
call fcn.004053b0
add eax, 0x10
add esp, 4
mov dword [esp + 0x18], eax
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0x54], 3
call fcn.00475b10
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x4493a2
sub esp, 0x18
mov ecx, esp
mov dword [esp + 0x38], esp
push ecx
lea ecx, [esp + 0x48]
call fcn.00448c40
push 1
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x4c]
mov byte [esp + 0x70], 4
call fcn.00475ff0
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 0x449360
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.004772d0
push esi
call fcn.004d3cb6
add esp, 4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
mov byte [esp + 0x74], 8
call fcn.00448ce0
mov byte [esp + 0x50], 3
mov eax, dword [esp + 0x1c]
test eax, eax
mov esi, eax
je 0x4493a2
push eax
call fcn.004772d0
push esi
call fcn.004d3cb6
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.00476110
lea edi, [esp + 0x2c]
call fcn.00475da0
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 0x4493e6
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.004755d0
mov dword [esp + 0x50], 0xffffffff
lea edx, [ebx + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x449416
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