Function at 0x408af0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x439e93
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebp
push esi
push edi
mov eax, dword [0x44b654]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
call fcn.004097d0
xor ecx, ecx
xor edi, edi
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x408b32
push 0x80004005
call fcn.00401510
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x54]
push str.sgwp
push ecx
lea edx, [esp + 0x1c]
push str._stype_sdlbegin1
push edx
mov dword [esp + 0x4c], edi
call fcn.00406880
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x5c]
call fcn.004092f0
add esp, 0x14
push fcn.00401550
push fcn.00401570
push 3
push 4
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], edi
call fcn.004267e5
mov byte [esp + 0x3c], 1
mov dword [esp + 0x20], edi
call fcn.0042690b
mov dword [esp + 0x24], eax
lea esi, [esp + 0x28]
mov ecx, dword [esp + 0x50]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x50]
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x50]
push edx
push eax
push ecx
lea ecx, [esp + 0x34]
mov edx, ebx
call fcn.00408e80
mov ebp, eax
add esp, 0x18
test ebp, ebp
je 0x408c00
mov ecx, dword [esp + 0x50]
push ebx
call fcn.00408520
add esp, 4
test eax, eax
jne 0x408c1e
push 8
push str.errmd5
mov ecx, esi
call fcn.004013e0
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x408c13
mov edx, dword [esp + 0x18]
push edx
push str.err_d
push esi
call fcn.00406880
add esp, 0xc
inc edi
xor ebp, ebp
add esi, 4
cmp edi, 3
jl 0x408ba6
call fcn.0042690b
mov esi, eax
push str.sgwp
test ebp, ebp
je 0x408c57
cmp dword [esp + 0x20], 0
je 0x408c46
mov eax, dword [esp + 0x58]
push eax
push str._stype_sdlendlocalok
lea ecx, [esp + 0x20]
push ecx
jmp 0x408c66
mov edx, dword [esp + 0x58]
push edx
push str._stype_sdlendok
lea eax, [esp + 0x20]
push eax
jmp 0x408c66
mov ecx, dword [esp + 0x58]
push ecx
push str._stype_sdlendfail
lea edx, [esp + 0x20]
push edx
call fcn.00406880
add esp, 0x10
xor edi, edi
mov eax, dword [esp + edi*4 + 0x28]
cmp dword [eax - 0xc], 0
je 0x408c88
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.004095d0
inc edi
cmp edi, 3
jl 0x408c70
call fcn.004097d0
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x408ca8
push 0x80004005
call fcn.00401510
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x3c], 2
mov ecx, dword [esp + 0x20]
push ecx
lea edx, [esp + 0x1c]
push str.size_d
push edx
call fcn.00406880
mov eax, dword [esp + 0x24]
mov ecx, dword [eax - 0xc]
add esp, 0xc
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.004095d0
sub esi, dword [esp + 0x24]
mov eax, 0x10624dd3
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
lea ecx, [esp + 0x1c]
push str.time_d
push ecx
call fcn.00406880
mov esi, dword [esp + 0x24]
mov eax, dword [esi - 0xc]
add esp, 0xc
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.004095d0
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x48]
push edi
call fcn.004092f0
lea eax, [esi - 0x10]
add esp, 4
mov byte [esp + 0x3c], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408d52
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push fcn.00401550
push 3
push 4
lea ecx, [esp + 0x34]
push ecx
mov byte [esp + 0x4c], 0
call fcn.004268a8
lea eax, [edi - 0x10]
mov dword [esp + 0x3c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408d8e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x30
ret