Function at 0x405910
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x586da8
mov eax, dword fs:[0]
push eax
sub esp, 0x808
mov eax, dword [0x5f44b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x80c], ecx
push 0x591d20
lea ecx, [ebp - 0x484]
call fcn.00401590
mov dword [ebp - 4], 0
push 0x591d24
lea ecx, [ebp - 0x484]
call fcn.00406070
push str.down.znshuru.com
lea ecx, [ebp - 0x484]
call fcn.00405e60
push 0x591d40
lea ecx, [ebp - 0x484]
call fcn.00405e60
push str.plugin_
lea ecx, [ebp - 0x484]
call fcn.00405e60
push 0x591d4c
lea ecx, [ebp - 0x760]
call fcn.00401600
mov byte [ebp - 4], 1
lea eax, [ebp - 0x760]
push eax
lea ecx, [ebp - 0x77c]
push ecx
call fcn.00422880
add esp, 8
mov dword [ebp - 0x810], eax
mov edx, dword [ebp - 0x810]
mov dword [ebp - 0x814], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x814]
push eax
lea ecx, [ebp - 0x484]
call fcn.00405e40
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x77c]
call fcn.004015d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x760]
call fcn.00401640
push 0x591d68
lea ecx, [ebp - 0x484]
call fcn.00405e60
push str.handinput.dat
lea ecx, [ebp - 0x484]
call fcn.00405e60
lea ecx, [ebp - 0x484]
push ecx
call fcn.00422d60
add esp, 4
lea edx, [ebp - 0x484]
push edx
lea eax, [ebp - 0x460]
push eax
call fcn.00422760
add esp, 8
mov byte [ebp - 4], 3
mov word [ebp - 0x23c], 0
push 0x206
push 0
lea ecx, [ebp - 0x23a]
push ecx
call fcn.0049e690
add esp, 0xc
mov word [ebp - 0x444], 0
push 0x206
push 0
lea edx, [ebp - 0x442]
push edx
call fcn.0049e690
add esp, 0xc
lea eax, [ebp - 0x23c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x444]
push ecx
lea ecx, [ebp - 0x460]
call fcn.00401670
push eax
call fcn.00420f60
add esp, 8
lea edx, [ebp - 0x23c]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00401600
mov byte [ebp - 4], 4
lea eax, [ebp - 0x444]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00403850
lea ecx, [ebp - 0x468]
call fcn.004013e0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x23c]
push ecx
lea ecx, [ebp - 0x798]
call fcn.00401600
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x460]
call fcn.00401670
push eax
lea ecx, [ebp - 0x7b4]
call fcn.00401600
mov byte [ebp - 4], 7
lea edx, [ebp - 0x798]
push edx
lea eax, [ebp - 0x7b4]
push eax
lea ecx, [ebp - 0x468]
call fcn.00401480
movzx ecx, al
mov dword [ebp - 0x30], ecx
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x7b4]
call fcn.00401640
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x798]
call fcn.00401640
mov edx, dword [ebp - 0x30]
push edx
push str.CDownHandInputCmd::DownloadFile___Down___d
call fcn.0044d540
add esp, 8
cmp dword [ebp - 0x30], 0
je 0x405bfd
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x4bc]
push ecx
call fcn.00422880
add esp, 8
mov byte [ebp - 4], 8
call fcn.00405680
mov ecx, eax
call fcn.00416a50
push eax
lea ecx, [ebp - 0x4d8]
call fcn.00401600
mov byte [ebp - 4], 9
push 0
lea ecx, [ebp - 0x4bc]
call fcn.00403650
push eax
lea ecx, [ebp - 0x4d8]
call fcn.00401670
push eax
call fcn.00470800
add esp, 0xc
lea ecx, [ebp - 0x2c]
call fcn.00401670
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x4d8]
call fcn.00401640
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x4bc]
call fcn.004015d0
jmp 0x405c91
lea ecx, [ebp - 0x4f8]
call fcn.00470e80
mov byte [ebp - 4], 0xa
push 0x591dd8
lea ecx, [ebp - 0x7d0]
call fcn.00401590
mov byte [ebp - 4], 0xb
lea edx, [ebp - 0x7d0]
push edx
lea ecx, [ebp - 0x4f8]
call fcn.00470fc0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x7d0]
call fcn.004015d0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x4f8]
call fcn.00470ea0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x468]
call fcn.00401470
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.00401640
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x460]
call fcn.00401640
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x484]
call fcn.004015d0
jmp 0x405e18
call fcn.00405680
mov ecx, eax
call fcn.00416a50
push eax
lea ecx, [ebp - 0x4a0]
call fcn.00401600
mov byte [ebp - 4], 0xc
push str.SCWBHandInput.exe
lea ecx, [ebp - 0x4a0]
call fcn.00403850
lea ecx, [ebp - 0x4a0]
call fcn.00401670
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405d7a
lea ecx, [ebp - 0x518]
call fcn.00470e80
mov byte [ebp - 4], 0xd
push 0x591e00
lea ecx, [ebp - 0x7ec]
call fcn.00401590
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x7ec]
push eax
lea ecx, [ebp - 0x518]
call fcn.00470fc0
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x7ec]
call fcn.004015d0
mov word [ebp - 0x724], 0
push 0x206
push 0
lea ecx, [ebp - 0x722]
push ecx
call fcn.0049e690
add esp, 0xc
lea ecx, [ebp - 0x4a0]
call fcn.00401670
push eax
push 0x591e04
lea edx, [ebp - 0x724]
push edx
call fcn.0049e5b6
add esp, 0xc
lea eax, [ebp - 0x724]
push eax
call fcn.0041e440
add esp, 4
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x518]
call fcn.00470ea0
jmp 0x405dcd
lea ecx, [ebp - 0x744]
call fcn.00470e80
mov byte [ebp - 4], 0xf
push 0x591e10
lea ecx, [ebp - 0x808]
call fcn.00401590
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x808]
push ecx
lea ecx, [ebp - 0x744]
call fcn.00470fc0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x808]
call fcn.004015d0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x744]
call fcn.00470ea0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x4a0]
call fcn.00401640
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x468]
call fcn.00401470
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.00401640
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x460]
call fcn.00401640
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x484]
call fcn.004015d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049e381
mov esp, ebp
pop ebp
ret