Function at 0x483310
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x590b54
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x600f80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x612d98]
mov esi, eax
mov edx, 0x612d9c
mov ebx, 0x612d98
cmp ecx, esi
jne 0x483364
mov eax, dword [0x612d94]
inc eax
jmp 0x483377
mov ecx, edx
call fcn.00440290
xchg dword [ebx], esi
mov eax, 1
mov edx, 0x612d9c
mov dword [0x612d94], eax
test edi, edi
jne 0x4833c0
dec eax
mov dword [0x612d94], eax
jne 0x4833b8
xor eax, eax
xchg dword [ebx], eax
mov eax, bind
lock xadd dword [edx], eax
test eax, 0x40000000
jne 0x4833b8
cmp eax, 0x80000000
jle 0x4833b8
lock bts dword [edx], 0x1e
jb 0x4833b8
mov ecx, edx
call fcn.00406700
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
or eax, 0xffffffff
jmp 0x4836fc
lea eax, [ebp - 0x9c]
push eax
call fcn.00484970
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 0x10
jb 0x4833db
mov eax, dword [eax]
push eax
mov ecx, edi
call fcn.0049a1dc
mov dword [ebp - 4], 0xffffffff
mov ebx, eax
cmp dword [ebp - 0x88], 0x10
jb 0x483403
push dword [ebp - 0x9c]
call fcn.0053e195
add esp, 4
mov dword [ebp - 0x88], 0xf
mov dword [ebp - 0x8c], 0
mov byte [ebp - 0x9c], 0
test ebx, ebx
je 0x4836ba
lea eax, [ebp - 0x6c]
push eax
call fcn.00484d30
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], 0x10
jb 0x48343e
mov eax, dword [eax]
push eax
mov ecx, ebx
call fcn.0049a1dc
mov dword [ebp - 4], 0xffffffff
mov edi, eax
cmp dword [ebp - 0x58], 0x10
jb 0x483460
push dword [ebp - 0x6c]
call fcn.0053e195
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0x58], 0xf
mov dword [ebp - 0x5c], 0
mov byte [ebp - 0x6c], 0
test edi, edi
je 0x48356e
mov eax, dword [edi + 4]
test eax, eax
je 0x48356e
cmp byte [eax], 0
je 0x48356e
xorps xmm0, xmm0
mov dword [ebp - 0x40], 0
push eax
lea ecx, [ebp - 0xb4]
movq qword [ebp - 0x48], xmm0
call fcn.00407be0
lea edx, [ebp - 0xb4]
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x48]
call fcn.00498cf9
lea ecx, [ebp - 0xb4]
mov dword [ebp - 4], 0xffffffff
call fcn.00407cb0
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x20]
sub eax, dword [ebp - 0x48]
mov ecx, 0x607750
push edx
mov edx, dword [ebp - 0x48]
push eax
mov dword [ebp - 0x54], eax
call fcn.0049ab59
add esp, 8
push 0
push 0x80
push 2
push 0
push 3
push 0x120116
push str.C:ProgramData_scpbrad_scpextd
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x483557
cmp esi, 0xffffffff
je 0x483557
push 0
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x54]
push dword [ebp - 0x48]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x48354a
push 0
lea eax, [ebp - 0x4c]
push eax
push 0x10
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x483550
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, edi
call fcn.0049a463
lea ecx, [ebp - 0x48]
call fcn.0040b940
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x483575
push str.C:ProgramData_scpbrad_scpextd
call esi
lea eax, [ebp - 0x84]
push eax
call fcn.00484e40
mov dword [ebp - 4], 3
cmp dword [eax + 0x14], 0x10
jb 0x483590
mov eax, dword [eax]
push eax
mov ecx, ebx
call fcn.0049a1dc
mov dword [ebp - 4], 0xffffffff
mov edi, eax
cmp dword [ebp - 0x70], 0x10
jb 0x4835b5
push dword [ebp - 0x84]
call fcn.0053e195
add esp, 4
mov dword [ebp - 0x70], 0xf
mov dword [ebp - 0x74], 0
mov byte [ebp - 0x84], 0
test edi, edi
je 0x4836b3
mov eax, dword [edi + 4]
test eax, eax
je 0x4836b3
cmp byte [eax], 0
je 0x4836b3
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
push eax
lea ecx, [ebp - 0xcc]
movq qword [ebp - 0x3c], xmm0
call fcn.00407be0
lea edx, [ebp - 0xcc]
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x3c]
call fcn.00498cf9
lea ecx, [ebp - 0xcc]
mov dword [ebp - 4], 0xffffffff
call fcn.00407cb0
mov ebx, dword [ebp - 0x38]
lea edx, [ebp - 0x30]
sub ebx, dword [ebp - 0x3c]
mov ecx, 0x607750
push edx
mov edx, dword [ebp - 0x3c]
push ebx
call fcn.0049ab59
add esp, 8
push 0
push 0x80
push 2
push 0
push 3
push 0x120116
push str.C:ProgramData_scpbrad_scpextr
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x4836a2
cmp esi, 0xffffffff
je 0x4836a2
push 0
lea eax, [ebp - 0x50]
push eax
push ebx
push dword [ebp - 0x3c]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call ebx
test eax, eax
je 0x483695
push 0
lea eax, [ebp - 0x50]
push eax
push 0x10
lea eax, [ebp - 0x30]
push eax
push esi
call ebx
test eax, eax
jne 0x48369b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, edi
call fcn.0049a463
lea ecx, [ebp - 0x3c]
call fcn.0040b940
jmp 0x4836ba
push str.C:ProgramData_scpbrad_scpextr
call esi
dec dword [0x612d94]
jne 0x4836fa
xor eax, eax
mov ecx, 0x612d98
xchg dword [ecx], eax
mov eax, bind
mov ecx, 0x612d9c
lock xadd dword [ecx], eax
test eax, 0x40000000
jne 0x4836fa
cmp eax, 0x80000000
jle 0x4836fa
lock bts dword [ecx], 0x1e
jb 0x4836fa
call fcn.00406700
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053cd12
mov esp, ebp
pop ebp
ret