Function at 0x514f78
Capabilities:
Copy file
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xc
push 0
push 0
dec ecx
jne 0x514f80
push ecx
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
xor eax, eax
push ebp
push 0x51557f
push dword fs:[eax]
mov dword fs:[eax], esp
cmp bl, 0x11
jne 0x515532
mov byte [ebp - 1], 0
lea eax, [ebp - 8]
mov edx, edi
call fcn.004044cc
mov edx, dword [ebp - 8]
mov eax, 0x515598
call fcn.00404a38
mov esi, eax
test esi, esi
je 0x515557
lea eax, [ebp - 0x30]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00404954
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0xc]
call fcn.00408b50
lea eax, [ebp - 8]
mov ecx, esi
mov edx, 1
call fcn.00404994
mov edx, dword [ebp - 8]
mov eax, 0x515598
call fcn.00404a38
mov esi, eax
test esi, esi
je 0x515557
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00404954
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x10]
call fcn.00408b50
lea eax, [ebp - 8]
mov ecx, esi
mov edx, 1
call fcn.00404994
mov edx, dword [ebp - 8]
mov eax, 0x515598
call fcn.00404a38
mov esi, eax
test esi, esi
je 0x515557
lea eax, [ebp - 0x38]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00404954
mov eax, dword [ebp - 0x38]
mov edx, 0x5155a4
call fcn.00404840
sete bl
lea eax, [ebp - 8]
mov ecx, esi
mov edx, 1
call fcn.00404994
mov edx, dword [ebp - 8]
mov eax, 0x515598
call fcn.00404a38
mov esi, eax
test esi, esi
je 0x515557
lea eax, [ebp - 0x3c]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00404954
mov eax, dword [ebp - 0x3c]
mov edx, 0x5155a4
call fcn.00404840
sete byte [ebp - 0x11]
lea eax, [ebp - 8]
mov ecx, esi
mov edx, 1
call fcn.00404994
mov edx, dword [ebp - 8]
mov eax, 0x515598
call fcn.00404a38
mov esi, eax
test esi, esi
je 0x515557
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00404954
lea eax, [ebp - 8]
mov ecx, esi
mov edx, 1
call fcn.00404994
mov edx, dword [ebp - 8]
mov eax, 0x515598
call fcn.00404a38
mov esi, eax
test esi, esi
je 0x515557
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00404954
lea eax, [ebp - 8]
mov ecx, esi
mov edx, 1
call fcn.00404994
mov edx, dword [ebp - 8]
mov eax, 0x515598
call fcn.00404a38
mov esi, eax
test esi, esi
je 0x515557
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00404954
lea eax, [ebp - 8]
mov ecx, esi
mov edx, 1
call fcn.00404994
mov edx, dword [ebp - 8]
mov eax, 0x515598
call fcn.00404a38
mov esi, eax
test esi, esi
je 0x515557
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00404954
lea eax, [ebp - 8]
mov ecx, esi
mov edx, 1
call fcn.00404994
mov edx, dword [ebp - 8]
mov eax, 0x515598
call fcn.00404a38
mov esi, eax
test esi, esi
je 0x515557
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00404954
lea eax, [ebp - 8]
mov ecx, esi
mov edx, 1
call fcn.00404994
mov edx, dword [ebp - 8]
mov eax, 0x515598
call fcn.00404a38
mov esi, eax
test esi, esi
je 0x515557
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00404954
lea eax, [ebp - 8]
mov ecx, esi
mov edx, 1
call fcn.00404994
cmp dword [ebp - 0xc], 0
je 0x515557
mov eax, dword [ebp - 0xc]
cmp byte [eax], 0x5c
je 0x515251
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, 0x5155b0
call fcn.00404740
lea edx, [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.0052f37c
cmp dword [ebp - 8], 0
je 0x51526d
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.004044cc
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x24]
call fcn.00408b50
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 0x24]
call fcn.004044cc
cmp dword [ebp - 0x24], 0
je 0x5152af
mov eax, dword [ebp - 0x24]
cmp byte [eax], 0x5c
je 0x5152a1
lea eax, [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
mov edx, 0x5155b0
call fcn.00404740
lea eax, [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x10]
call fcn.00404740
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 0x2c]
call fcn.00408b50
mov edx, dword [ebp - 0x44]
lea eax, [ebp - 0x2c]
call fcn.004044cc
cmp dword [ebp - 0x2c], 0
je 0x5152f1
mov eax, dword [ebp - 0x2c]
cmp byte [eax], 0x5c
je 0x5152e3
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x2c]
mov edx, 0x5155b0
call fcn.00404740
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x10]
call fcn.00404740
mov edx, dword [0x5a2304]
mov edx, dword [edx]
lea eax, [ebp - 0x48]
mov ecx, dword [ebp - 0xc]
call fcn.00404740
mov eax, dword [ebp - 0x48]
call fcn.004093a4
test al, al
je 0x515414
push dword [ebp - 0x10]
push 0x5155b0
mov edx, dword [0x5a2304]
mov edx, dword [edx]
lea eax, [ebp - 0x50]
mov ecx, dword [ebp - 0xc]
call fcn.00404740
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x4c]
call fcn.00409810
push dword [ebp - 0x4c]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.004047b4
mov eax, dword [ebp - 0x10]
call fcn.004093a4
xor al, 1
or bl, al
je 0x5154f2
cmp byte [ebp - 0x11], 0
je 0x5153cd
mov eax, dword [ebp - 0x20]
mov edx, 0x5155bc
call fcn.00404840
jne 0x515393
push 0x40
mov eax, dword [ebp - 0x18]
call fcn.004048f4
push eax
mov eax, dword [ebp - 0x1c]
call fcn.004048f4
mov edx, eax
mov eax, dword [0x5a211c]
mov eax, dword [eax]
pop ecx
call fcn.004a2dfc
mov eax, dword [ebp - 0x20]
mov edx, 0x5155c8
call fcn.00404840
jne 0x5153cd
push 0x44
mov eax, dword [ebp - 0x18]
call fcn.004048f4
push eax
mov eax, dword [ebp - 0x1c]
call fcn.004048f4
mov edx, eax
mov eax, dword [0x5a211c]
mov eax, dword [eax]
pop ecx
call fcn.004a2dfc
cmp eax, 6
jne 0x515557
mov eax, dword [ebp - 0x10]
call fcn.004093a4
test al, al
je 0x5153e3
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.004094fc
push 0
mov eax, dword [ebp - 0x10]
call fcn.004048f4
push eax
mov edx, dword [0x5a2304]
mov edx, dword [edx]
lea eax, [ebp - 0x54]
mov ecx, dword [ebp - 0xc]
call fcn.00404740
mov eax, dword [ebp - 0x54]
call fcn.004048f4
push eax
call sub.kernel32.dll_CopyFileA
jmp 0x5154f2
mov edx, dword [0x5a2304]
mov edx, dword [edx]
lea eax, [ebp - 0x58]
mov ecx, dword [ebp - 0xc]
call fcn.00404740
mov eax, dword [ebp - 0x58]
call fcn.004093b4
test al, al
je 0x515557
push ebp
mov edx, dword [0x5a2304]
mov edx, dword [edx]
lea eax, [ebp - 0x5c]
mov ecx, dword [ebp - 0xc]
call fcn.00404740
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x10]
call fcn.00514ce4
pop ecx
xor al, 1
or al, bl
je 0x5154f2
cmp byte [ebp - 0x11], 0
je 0x5154d2
mov eax, dword [ebp - 0x20]
mov edx, 0x5155bc
call fcn.00404840
jne 0x515498
push 0x40
mov eax, dword [ebp - 0x18]
call fcn.004048f4
push eax
mov eax, dword [ebp - 0x1c]
call fcn.004048f4
mov edx, eax
mov eax, dword [0x5a211c]
mov eax, dword [eax]
pop ecx
call fcn.004a2dfc
mov eax, dword [ebp - 0x20]
mov edx, 0x5155c8
call fcn.00404840
jne 0x5154d2
push 0x44
mov eax, dword [ebp - 0x18]
call fcn.004048f4
push eax
mov eax, dword [ebp - 0x1c]
call fcn.004048f4
mov edx, eax
mov eax, dword [0x5a211c]
mov eax, dword [eax]
pop ecx
call fcn.004a2dfc
cmp eax, 6
jne 0x515557
mov edx, dword [0x5a2304]
mov edx, dword [edx]
lea eax, [ebp - 0x60]
mov ecx, dword [ebp - 0xc]
call fcn.00404740
mov eax, dword [ebp - 0x60]
mov ecx, ebx
mov edx, dword [ebp - 0x10]
call fcn.005149d0
lea edx, [ebp - 0x64]
mov eax, dword [ebp - 0x24]
call fcn.00408b50
cmp dword [ebp - 0x64], 0
je 0x51552c
push 1
mov eax, dword [ebp - 0x2c]
call fcn.004048f4
push eax
mov eax, dword [ebp - 0x28]
call fcn.004048f4
push eax
mov eax, dword [ebp - 0x24]
call fcn.004048f4
push eax
push 0x5155cc
push 0
call sub.shell32.dll_ShellExecuteA
mov byte [ebp - 1], 1
jmp 0x515557
xor ecx, ecx
mov dl, 1
mov eax, dword [0x5147e8]
call fcn.0049b22c
mov esi, eax
mov ecx, ebx
mov edx, edi
mov eax, esi
call fcn.005155d4
mov byte [ebp - 1], al
mov eax, esi
call fcn.00403600
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x515586
lea eax, [ebp - 0x64]
mov edx, 0x14
call fcn.00404458
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404458
ret