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

Disassembly:
push ebp
sub esp, 0x4d8
lea ebp, [esp - 4]
mov eax, dword [0x10139d20]
xor eax, ebp
mov dword [ebp + 0x4d8], eax
push 0x28
mov eax, 0x100ed18b
call fcn.100773f7
mov dword [ebp - 0x10], ecx
push 0x1011e018
lea ecx, [ebp + 0x38]
call fcn.10001d80
xor esi, esi
push 0x100fa188
lea ecx, [ebp + 0x38]
mov dword [ebp - 4], esi
call fcn.10001f40
push str.down.wn51.com
lea ecx, [ebp + 0x38]
call fcn.1001b0b4
push 0x100fa174
lea ecx, [ebp + 0x38]
call fcn.1001b0b4
push str.plugin_handinput.dat
lea ecx, [ebp + 0x38]
call fcn.1001b0b4
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp + 0x74]
push eax
call fcn.1001b49e
mov edi, 0x206
push edi
xor ebx, ebx
lea eax, [ebp + 0x2d2]
push esi
inc ebx
push eax
mov byte [ebp - 4], bl
mov word [ebp + 0x2d0], si
call fcn.10077be0
push edi
lea eax, [ebp + 0xca]
push esi
push eax
mov word [ebp + 0xc8], si
call fcn.10077be0
add esp, 0x20
lea eax, [ebp + 0x2d0]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp dword [ebp + 0x8c], 8
mov eax, dword [ebp + 0x78]
jae 0x100504de
lea eax, [ebp + 0x78]
lea ecx, [ebp + 0xc8]
push ecx
push eax
call fcn.10019d63
pop ecx
pop ecx
lea eax, [ebp + 0x2d0]
push eax
lea ecx, [ebp + 0x1c]
call fcn.10001df0
lea eax, [ebp + 0xc8]
push eax
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 2
call fcn.10003cf0
lea ecx, [ebp - 0x18]
call fcn.10001bc0
push 0x100503ed
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.10001d70
lea eax, [ebp + 0x2d0]
push eax
lea ecx, [ebp + 0xac]
call fcn.10001df0
cmp dword [ebp + 0x8c], 8
mov eax, dword [ebp + 0x78]
mov byte [ebp - 4], 4
jae 0x1005054d
lea eax, [ebp + 0x78]
push eax
lea ecx, [ebp + 0x90]
call fcn.10001df0
lea eax, [ebp + 0xac]
push eax
lea eax, [ebp + 0x90]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.10001c60
push esi
push ebx
lea ecx, [ebp + 0x90]
movzx edi, al
call fcn.10001fc0
push esi
push ebx
lea ecx, [ebp + 0xac]
mov byte [ebp - 4], 3
call fcn.10001fc0
cmp edi, esi
je 0x100506eb
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp + 0x90]
push eax
call fcn.1001b179
pop ecx
pop ecx
mov byte [ebp - 4], 6
call fcn.100058ef
mov ecx, eax
call fcn.10017bf1
push eax
lea ecx, [ebp + 0xac]
call fcn.10001df0
cmp dword [ebp + 0xa8], 0x10
mov ecx, dword [ebp + 0x94]
mov byte [ebp - 4], 7
jae 0x100505e3
lea ecx, [ebp + 0x94]
cmp dword [ebp + 0xc4], 8
mov eax, dword [ebp + 0xb0]
jae 0x100505f8
lea eax, [ebp + 0xb0]
push esi
push ecx
push eax
call fcn.10029409
mov eax, dword [ebp + 0x20]
add esp, 0xc
cmp dword [ebp + 0x34], 8
jae 0x1005060f
lea eax, [ebp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
cmp eax, esi
je 0x1005062d
push esi
push esi
push 0x13a2
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
call fcn.100058ef
mov ecx, eax
call fcn.10017bf1
push eax
lea ecx, [ebp]
call fcn.10001df0
push str.WnHandInput.exe
lea ecx, [ebp]
mov byte [ebp - 4], 8
call fcn.10003cf0
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x1005065f
lea eax, [ebp + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
lea ecx, [ebp + 0x54]
je 0x10050689
call fcn.10029b34
push 0x100ff980
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 9
call fcn.10001d80
mov byte [ebp - 4], 0xa
jmp 0x100506a3
call fcn.10029b34
push 0x100ff97c
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xb
call fcn.10001d80
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp + 0x54]
call fcn.10029c09
push esi
push ebx
lea ecx, [ebp - 0x34]
call fcn.10001f70
lea ecx, [ebp + 0x54]
mov byte [ebp - 4], 8
call fcn.10029b46
push esi
push ebx
lea ecx, [ebp]
call fcn.10001fc0
push esi
push ebx
lea ecx, [ebp + 0xac]
call fcn.10001fc0
push esi
push ebx
lea ecx, [ebp + 0x90]
call fcn.10001f70
jmp 0x1005072a
lea ecx, [ebp + 0x54]
call fcn.10029b34
push 0x100ff978
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xd
call fcn.10001d80
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp + 0x54]
mov byte [ebp - 4], 0xe
call fcn.10029c09
push esi
push ebx
lea ecx, [ebp - 0x34]
call fcn.10001f70
lea ecx, [ebp + 0x54]
mov byte [ebp - 4], 3
call fcn.10029b46
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.10001c50
push esi
push ebx
lea ecx, [ebp + 0x1c]
call fcn.10001fc0
push esi
push ebx
lea ecx, [ebp + 0x74]
call fcn.10001fc0
push esi
push ebx
lea ecx, [ebp + 0x38]
call fcn.10001f70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x4d8]
xor ecx, ebp
call fcn.100773e8
add ebp, 0x4dc
leave
ret