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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xc
push 0
push 0
dec ecx
jne 0x51df4c
push ecx
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
xor eax, eax
push ebp
push 0x51e535
push dword fs:[eax]
mov dword fs:[eax], esp
cmp bl, 0x11
jne 0x51e4e8
mov byte [ebp - 1], 0
lea eax, [ebp - 8]
mov edx, edi
call fcn.004044cc
mov edx, dword [ebp - 8]
mov eax, 0x51e550
call fcn.00404a38
mov esi, eax
test esi, esi
je 0x51e50d
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.00408b20
lea eax, [ebp - 8]
mov ecx, esi
mov edx, 1
call fcn.00404994
mov edx, dword [ebp - 8]
mov eax, 0x51e550
call fcn.00404a38
mov esi, eax
test esi, esi
je 0x51e50d
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.00408b20
lea eax, [ebp - 8]
mov ecx, esi
mov edx, 1
call fcn.00404994
mov edx, dword [ebp - 8]
mov eax, 0x51e550
call fcn.00404a38
mov esi, eax
test esi, esi
je 0x51e50d
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, 0x51e55c
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, 0x51e550
call fcn.00404a38
mov esi, eax
test esi, esi
je 0x51e50d
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, 0x51e55c
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, 0x51e550
call fcn.00404a38
mov esi, eax
test esi, esi
je 0x51e50d
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, 0x51e550
call fcn.00404a38
mov esi, eax
test esi, esi
je 0x51e50d
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, 0x51e550
call fcn.00404a38
mov esi, eax
test esi, esi
je 0x51e50d
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, 0x51e550
call fcn.00404a38
mov esi, eax
test esi, esi
je 0x51e50d
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, 0x51e550
call fcn.00404a38
mov esi, eax
test esi, esi
je 0x51e50d
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, 0x51e550
call fcn.00404a38
mov esi, eax
test esi, esi
je 0x51e50d
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 0x51e50d
mov eax, dword [ebp - 0xc]
cmp byte [eax], 0x5c
je 0x51e21d
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, 0x51e568
call fcn.00404740
lea edx, [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.005222d8
cmp dword [ebp - 8], 0
je 0x51e239
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.004044cc
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x24]
call fcn.00408b20
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 0x24]
call fcn.004044cc
cmp dword [ebp - 0x24], 0
je 0x51e27b
mov eax, dword [ebp - 0x24]
cmp byte [eax], 0x5c
je 0x51e26d
lea eax, [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
mov edx, 0x51e568
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.00408b20
mov edx, dword [ebp - 0x44]
lea eax, [ebp - 0x2c]
call fcn.004044cc
cmp dword [ebp - 0x2c], 0
je 0x51e2bd
mov eax, dword [ebp - 0x2c]
cmp byte [eax], 0x5c
je 0x51e2af
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x2c]
mov edx, 0x51e568
call fcn.00404740
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x10]
call fcn.00404740
mov edx, dword [0x5872d0]
mov edx, dword [edx]
lea eax, [ebp - 0x48]
mov ecx, dword [ebp - 0xc]
call fcn.00404740
mov eax, dword [ebp - 0x48]
call fcn.00409374
test al, al
je 0x51e3ca
push dword [ebp - 0x10]
push 0x51e568
mov edx, dword [0x5872d0]
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.00409798
push dword [ebp - 0x4c]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.004047b4
mov eax, dword [ebp - 0x10]
call fcn.00409374
xor al, 1
or bl, al
je 0x51e4a8
cmp byte [ebp - 0x11], 0
je 0x51e399
mov eax, dword [ebp - 0x20]
mov edx, 0x51e574
call fcn.00404840
jne 0x51e35f
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 [0x5870e8]
mov eax, dword [eax]
pop ecx
call fcn.004a2174
mov eax, dword [ebp - 0x20]
mov edx, 0x51e580
call fcn.00404840
jne 0x51e399
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 [0x5870e8]
mov eax, dword [eax]
pop ecx
call fcn.004a2174
cmp eax, 6
jne 0x51e50d
push 0
mov eax, dword [ebp - 0x10]
call fcn.004048f4
push eax
mov edx, dword [0x5872d0]
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 0x51e4a8
mov edx, dword [0x5872d0]
mov edx, dword [edx]
lea eax, [ebp - 0x58]
mov ecx, dword [ebp - 0xc]
call fcn.00404740
mov eax, dword [ebp - 0x58]
call fcn.00409384
test al, al
je 0x51e50d
push ebp
mov edx, dword [0x5872d0]
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.0051dcb0
pop ecx
xor al, 1
or al, bl
je 0x51e4a8
cmp byte [ebp - 0x11], 0
je 0x51e488
mov eax, dword [ebp - 0x20]
mov edx, 0x51e574
call fcn.00404840
jne 0x51e44e
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 [0x5870e8]
mov eax, dword [eax]
pop ecx
call fcn.004a2174
mov eax, dword [ebp - 0x20]
mov edx, 0x51e580
call fcn.00404840
jne 0x51e488
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 [0x5870e8]
mov eax, dword [eax]
pop ecx
call fcn.004a2174
cmp eax, 6
jne 0x51e50d
mov edx, dword [0x5872d0]
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.0051d9c0
lea edx, [ebp - 0x64]
mov eax, dword [ebp - 0x24]
call fcn.00408b20
cmp dword [ebp - 0x64], 0
je 0x51e4e2
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 0x51e584
push 0
call sub.shell32.dll_ShellExecuteA
mov byte [ebp - 1], 1
jmp 0x51e50d
xor ecx, ecx
mov dl, 1
mov eax, dword [0x51d7d8]
call fcn.0049a5a4
mov esi, eax
mov ecx, ebx
mov edx, edi
mov eax, esi
call fcn.0051e58c
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 0x51e53c
lea eax, [ebp - 0x64]
mov edx, 0x14
call fcn.00404458
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404458
ret