Function at 0x405da0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x53143a
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov eax, dword [0x57d6c0]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x68]
call fcn.0041479a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x405de5
push 0x80004005
call fcn.00404240
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.0041f909
mov byte [esp + 0x60], 1
call fcn.0041479a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x405e25
push 0x80004005
call fcn.00404240
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.00407d30
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.0041f921
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x28]
call fcn.0041fe61
test eax, eax
je 0x405ea4
nop
lea ecx, [esp + 0x68]
call fcn.00404ee0
mov ecx, eax
call fcn.00404f70
lea ecx, [esp + 0x68]
push ecx
lea edi, [esp + 0x1c]
lea ebx, [esp + 0x3c]
call fcn.00407b40
lea edx, [esp + 0x68]
push edx
lea ecx, [esp + 0x28]
call fcn.0041fe61
test eax, eax
jne 0x405e70
lea ecx, [esp + 0x24]
call fcn.0041fcca
mov eax, dword [esp + 0x54]
test eax, eax
jle 0x405f9f
cmp eax, 1
jne 0x405efd
mov eax, dword [esp + 0x50]
mov esi, dword [eax]
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x405ef9
call fcn.00509aba
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x405edd
call fcn.00509aba
lea eax, [esi + 0xc]
mov esi, dword [esp + 0x6c]
push eax
mov ecx, esi
call fcn.00403680
push esi
mov ecx, ebp
call fcn.00403680
jmp 0x405fad
mov eax, dword [eax]
jmp 0x405ed3
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.00408340
test ebx, ebx
jne 0x405f93
call fcn.00509aba
cmp edi, dword [ebx + 0x18]
jne 0x405f2b
call fcn.00509aba
mov ecx, dword [esp + 0x70]
lea eax, [edi + 0xc]
push eax
call fcn.00403680
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
lea esi, [esp + 0x18]
call fcn.00408340
test edi, edi
jne 0x405f97
call fcn.00509aba
cmp ebx, dword [edi + 0x18]
jne 0x405f5c
call fcn.00509aba
add ebx, 0xc
push ebx
mov ecx, ebp
call fcn.00403680
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x405f9b
call fcn.00509aba
xor eax, eax
mov esi, dword [esp + 0x1c]
cmp esi, dword [eax + 0x18]
jne 0x405f84
call fcn.00509aba
mov ecx, dword [esp + 0x6c]
lea eax, [esi + 0xc]
push eax
call fcn.00403680
jmp 0x405fad
mov ebx, dword [ebx]
jmp 0x405f21
mov edi, dword [edi]
jmp 0x405f52
mov eax, dword [eax]
jmp 0x405f76
push 0
push 0
push 0x55c260
call fcn.004166ff
push str.SERVERVER.INI
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea esi, [esp + 0x38]
mov byte [esp + 0x60], 4
call fcn.00408040
mov edx, dword [esp + 0x38]
push edx
call fcn.00408fa1
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 0x405ff8
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.0041fd46
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 0x40602e
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