Function at 0x405d10
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x53039a
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov eax, dword [0x57c6c0]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x68]
call fcn.00414764
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x405d55
push 0x80004005
call fcn.00404300
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x68], eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x60], 0
call fcn.0041f95a
mov byte [esp + 0x60], 1
call fcn.00414764
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x405d95
push 0x80004005
call fcn.00404300
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x38]
push ecx
mov byte [esp + 0x64], 2
call fcn.00407ca0
mov edx, dword [esp + 0x74]
push 0
mov byte [esp + 0x64], 3
mov eax, dword [edx]
push 2
push eax
lea ecx, [esp + 0x30]
call fcn.0041f972
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x28]
call fcn.0041feb2
test eax, eax
je 0x405e14
nop
lea ecx, [esp + 0x68]
call fcn.00404ed0
mov ecx, eax
call fcn.00404f60
lea ecx, [esp + 0x68]
push ecx
lea edi, [esp + 0x1c]
lea ebx, [esp + 0x3c]
call fcn.00407ab0
lea edx, [esp + 0x68]
push edx
lea ecx, [esp + 0x28]
call fcn.0041feb2
test eax, eax
jne 0x405de0
lea ecx, [esp + 0x24]
call fcn.0041fd1b
mov eax, dword [esp + 0x54]
test eax, eax
jle 0x405f0f
cmp eax, 1
jne 0x405e6d
mov eax, dword [esp + 0x50]
mov esi, dword [eax]
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x405e69
call fcn.0050995a
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x405e4d
call fcn.0050995a
lea eax, [esi + 0xc]
mov esi, dword [esp + 0x6c]
push eax
mov ecx, esi
call fcn.00403720
push esi
mov ecx, ebp
call fcn.00403720
jmp 0x405f1d
mov eax, dword [eax]
jmp 0x405e43
mov ecx, dword [esp + 0x50]
mov edi, dword [ecx]
mov ebx, dword [esp + 0x38]
lea esi, [esp + 0x18]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edi
call fcn.004082c0
test ebx, ebx
jne 0x405f03
call fcn.0050995a
cmp edi, dword [ebx + 0x18]
jne 0x405e9b
call fcn.0050995a
mov ecx, dword [esp + 0x70]
lea eax, [edi + 0xc]
push eax
call fcn.00403720
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
lea esi, [esp + 0x18]
call fcn.004082c0
test edi, edi
jne 0x405f07
call fcn.0050995a
cmp ebx, dword [edi + 0x18]
jne 0x405ecc
call fcn.0050995a
add ebx, 0xc
push ebx
mov ecx, ebp
call fcn.00403720
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x405f0b
call fcn.0050995a
xor eax, eax
mov esi, dword [esp + 0x1c]
cmp esi, dword [eax + 0x18]
jne 0x405ef4
call fcn.0050995a
mov ecx, dword [esp + 0x6c]
lea eax, [esi + 0xc]
push eax
call fcn.00403720
jmp 0x405f1d
mov ebx, dword [ebx]
jmp 0x405e91
mov edi, dword [edi]
jmp 0x405ec2
mov eax, dword [eax]
jmp 0x405ee6
push 0
push 0
push 0x55b1c8
call fcn.004166cb
push str.SERVERVER.INI
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea esi, [esp + 0x38]
mov byte [esp + 0x60], 4
call fcn.00407fb0
mov edx, dword [esp + 0x38]
push edx
call fcn.00408f21
mov byte [esp + 0x64], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405f68
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x60], 0
call fcn.0041fd97
mov dword [esp + 0x60], 0xffffffff
mov eax, dword [esp + 0x68]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405f9e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 0x10