Function at 0x402330
Capabilities:
Check if file exists
Contain obfuscated stackstrings
Delete file
Get file size
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x417fe0
push 0x403ed0
mov eax, dword fs:[0]
push eax
sub esp, 0x454
mov eax, dword [0x419004]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x464], ebx
mov dword [ebp - 0x450], 0xffffffff
mov dword [ebp - 0x460], 0
mov ecx, 0x65
mov dword [ebp - 0x40], 0x650065
mov dword [ebp - 0x3c], 0x650065
mov dword [ebp - 0x38], 0x650065
mov dword [ebp - 0x34], 0x650065
mov dword [ebp - 0x30], 0x300025
mov dword [ebp - 0x2c], 0x780038
mov dword [ebp - 0x28], 0x65002e
mov dword [ebp - 0x24], 0x650065
xor eax, eax
mov word [ebp - 0x20], ax
push 0x208
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00404180
add esp, 0xc
test ebx, ebx
je 0x4025cb
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40256c
mov dword [ebp - 4], 0
push 0
push 0x80000000
push 3
push 0
push 0
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x450], edi
cmp edi, 0xffffffff
je 0x4024cc
mov dword [ebp - 0x458], 0xffffffff
mov dword [ebp - 0x454], 0xffffffff
lea eax, [ebp - 0x454]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor esi, esi
or esi, eax
mov eax, dword [ebp - 0x454]
mov dword [ebp - 0x45c], eax
mov dword [ebp - 0x458], esi
mov dword [ebp - 0x454], eax
cmp esi, 0xffffffff
je 0x4024cc
mov dword [ebp - 0x44c], 0
push 0x200
push 0xff
lea eax, [ebp - 0x448]
push eax
call fcn.00404180
add esp, 0xc
add esi, 0x1ff
mov eax, dword [ebp - 0x45c]
adc eax, 0
shrd esi, eax, 9
mov dword [ebp - 0x44c], esi
mov eax, esi
dec esi
mov dword [ebp - 0x44c], esi
test eax, eax
je 0x4024cc
push 0
lea eax, [ebp - 0x460]
push eax
push 0x200
lea eax, [ebp - 0x448]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x4024a1
mov dword [ebp - 4], 0xfffffffe
call fcn.00402599
push ecx
push ebx
lea ecx, [ebp - 0x248]
call fcn.00401ee0
add esp, 8
test eax, eax
je 0x4025a1
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x4025a1
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
test eax, eax
je 0x4025a1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor esi, eax
push esi
lea eax, [ebp - 0x40]
push eax
push 0x104
lea eax, [ebp - 0x248]
push eax
call fcn.00402050
add esp, 0x10
test eax, eax
je 0x4025a1
lea eax, [ebp - 0x248]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x4025a1
lea eax, [ebp - 0x248]
push eax
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call esi
test eax, eax
je 0x4025a7
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0040331c
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
call esi
test eax, eax
jne 0x40256c
lea eax, [ebp - 0x248]
push eax
call esi
test eax, eax
jne 0x40256c
push 4
push eax
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor eax, eax
jmp 0x402571