Function at 0x405d30
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x5303ba
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.004147ce
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x405d75
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.0041fadc
mov byte [esp + 0x60], 1
call fcn.004147ce
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x405db5
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.00407cc0
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.0041faf4
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x28]
call fcn.0042003d
test eax, eax
je 0x405e34
nop
lea ecx, [esp + 0x68]
call fcn.00404ef0
mov ecx, eax
call fcn.00404f80
lea ecx, [esp + 0x68]
push ecx
lea edi, [esp + 0x1c]
lea ebx, [esp + 0x3c]
call fcn.00407ad0
lea edx, [esp + 0x68]
push edx
lea ecx, [esp + 0x28]
call fcn.0042003d
test eax, eax
jne 0x405e00
lea ecx, [esp + 0x24]
call fcn.0041fea3
mov eax, dword [esp + 0x54]
test eax, eax
jle 0x405f2f
cmp eax, 1
jne 0x405e8d
mov eax, dword [esp + 0x50]
mov esi, dword [eax]
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x405e89
call fcn.0050997a
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x405e6d
call fcn.0050997a
lea eax, [esi + 0xc]
mov esi, dword [esp + 0x6c]
push eax
mov ecx, esi
call fcn.00403740
push esi
mov ecx, ebp
call fcn.00403740
jmp 0x405f3d
mov eax, dword [eax]
jmp 0x405e63
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.004082d0
test ebx, ebx
jne 0x405f23
call fcn.0050997a
cmp edi, dword [ebx + 0x18]
jne 0x405ebb
call fcn.0050997a
mov ecx, dword [esp + 0x70]
lea eax, [edi + 0xc]
push eax
call fcn.00403740
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
lea esi, [esp + 0x18]
call fcn.004082d0
test edi, edi
jne 0x405f27
call fcn.0050997a
cmp ebx, dword [edi + 0x18]
jne 0x405eec
call fcn.0050997a
add ebx, 0xc
push ebx
mov ecx, ebp
call fcn.00403740
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x405f2b
call fcn.0050997a
xor eax, eax
mov esi, dword [esp + 0x1c]
cmp esi, dword [eax + 0x18]
jne 0x405f14
call fcn.0050997a
mov ecx, dword [esp + 0x6c]
lea eax, [esi + 0xc]
push eax
call fcn.00403740
jmp 0x405f3d
mov ebx, dword [ebx]
jmp 0x405eb1
mov edi, dword [edi]
jmp 0x405ee2
mov eax, dword [eax]
jmp 0x405f06
push 0
push 0
push 0x55b1e0
call fcn.00416736
push str.SERVERVER.INI
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea esi, [esp + 0x38]
mov byte [esp + 0x60], 4
call fcn.00407fd0
mov edx, dword [esp + 0x38]
push edx
call fcn.00408f31
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 0x405f88
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.0041ff22
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 0x405fbe
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