Function at 0x415b10
Capabilities:
Check if file exists
Copy file
Create process on windows
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x562332
mov eax, dword fs:[0]
push eax
mov eax, 0x3744
call fcn.0052f4d0
mov eax, dword [0x5bbd60]
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 esi, ecx
xor ebx, ebx
push 0x405d10
mov dword [ebp - 0x3314], esi
mov dword [0x5ca498], ebx
mov dword [0x5ca49c], ebx
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x331c]
push eax
mov dword [ebp - 0x331c], 8
mov dword [ebp - 0x3318], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, esi
call fcn.00439065
push ebx
call fcn.00439b21
add esp, 4
push 0x591608
mov ecx, esi
call fcn.0043a00f
push 0x400
lea ecx, [ebp - 0x410]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [ebp - 0x410]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push eax
lea ecx, [ebp - 0x3308]
call fcn.00404c00
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x3308]
push 0x5915ec
push eax
mov dword [ebp - 0x3310], ebx
call fcn.0052af78
add esp, 8
cmp eax, ebx
jne 0x415ccf
mov eax, dword [esi + 0x48]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x415bf7
sub eax, edx
jne 0x415ccf
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileA]
push ebx
push str.Loader.bin
push 0x5915ec
xor esi, esi
call edi
test eax, eax
jne 0x415c49
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xa
call ebx
mov ecx, esi
inc esi
cmp ecx, 0xa
je 0x415e4e
push 0
push str.Loader.bin
push 0x5915ec
call edi
test eax, eax
je 0x415c25
xor ebx, ebx
push 0x40
lea edx, [ebp - 0x3370]
push ebx
push edx
call fcn.0052cb80
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x3328], eax
mov dword [ebp - 0x3324], eax
mov dword [ebp - 0x3320], eax
lea eax, [ebp - 0x332c]
push eax
lea ecx, [ebp - 0x3374]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x590256
push str.Loader.bin
mov dword [ebp - 0x3374], 0x44
mov dword [ebp - 0x3348], 0x40
mov dword [ebp - 0x332c], ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x3308]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x415e6b
push 0xc
call fcn.00427a86
add esp, 4
mov dword [ebp - 0x330c], eax
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x415cf6
mov ecx, eax
call fcn.0043aa44
mov dword [ebp - 0x330c], eax
jmp 0x415cfc
mov dword [ebp - 0x330c], ebx
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x3308]
push 0x5915ec
push ecx
call fcn.0052af78
add esp, 8
cmp eax, ebx
jne 0x415df8
mov edx, dword [esi + 0x48]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x415d24
sub eax, edi
je 0x415df8
push str.99754106633f94d350db34d548d6091s
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x415df8
push str.Loader.bin
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x415dc8
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x80
push str.Loader.bin
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str.Loader.bin
call ebx
test eax, eax
jne 0x415dc6
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
nop
cmp dword [ebp - 0x3310], 0x19
ja 0x415d8d
push 0xa
jmp 0x415d8f
push 0x32
call esi
mov eax, dword [ebp - 0x3310]
mov edx, eax
inc eax
mov dword [ebp - 0x3310], eax
cmp edx, 0x28
je 0x415e4e
push 0x80
push str.Loader.bin
call edi
push str.Loader.bin
call ebx
test eax, eax
je 0x415d80
mov esi, dword [ebp - 0x3314]
xor ebx, ebx
lea ecx, [ebp - 0x3304]
push ecx
call fcn.00416920
lea edx, [ebp - 0x3304]
mov byte [ebp - 4], 2
mov ecx, edx
mov dword [esi + 0x20], edx
call fcn.0043354a
lea eax, [ebp - 0x3304]
push eax
mov byte [ebp - 4], 0
call fcn.00415ea0
mov ecx, dword [ebp - 0x3308]
push str.Loader.bin
push ecx
call fcn.0052af78
add esp, 8
cmp eax, ebx
jne 0x415e3b
lea edx, [ebp - 0x3750]
push edx
call fcn.0041fc20
lea ecx, [ebp - 0x3750]
mov byte [ebp - 4], 3
call fcn.0043354a
lea eax, [ebp - 0x3750]
push eax
mov byte [ebp - 4], 0
call fcn.00415f90
mov ecx, dword [ebp - 0x330c]
cmp ecx, ebx
je 0x415e4e
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 1
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x3308]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415e77
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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.00527d0f
mov esp, ebp
pop ebp
ret