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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xc
push 0
push 0
dec ecx
jne 0x525424
push ecx
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
xor eax, eax
push ebp
push 0x525a23
push dword fs:[eax]
mov dword fs:[eax], esp
cmp bl, 0x2b
jne 0x5259d6
mov byte [ebp - 1], 0
lea eax, [ebp - 8]
mov edx, edi
call fcn.00404ac8
mov edx, dword [ebp - 8]
mov eax, 0x525a3c
call fcn.00405034
mov esi, eax
test esi, esi
je 0x5259fb
lea eax, [ebp - 0x30]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00404f50
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0xc]
call fcn.00409448
lea eax, [ebp - 8]
mov ecx, esi
mov edx, 1
call fcn.00404f90
mov edx, dword [ebp - 8]
mov eax, 0x525a3c
call fcn.00405034
mov esi, eax
test esi, esi
je 0x5259fb
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00404f50
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x10]
call fcn.00409448
lea eax, [ebp - 8]
mov ecx, esi
mov edx, 1
call fcn.00404f90
mov edx, dword [ebp - 8]
mov eax, 0x525a3c
call fcn.00405034
mov esi, eax
test esi, esi
je 0x5259fb
lea eax, [ebp - 0x38]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00404f50
mov eax, dword [ebp - 0x38]
mov edx, 0x525a48
call fcn.00404e3c
sete bl
lea eax, [ebp - 8]
mov ecx, esi
mov edx, 1
call fcn.00404f90
mov edx, dword [ebp - 8]
mov eax, 0x525a3c
call fcn.00405034
mov esi, eax
test esi, esi
je 0x5259fb
lea eax, [ebp - 0x3c]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00404f50
mov eax, dword [ebp - 0x3c]
mov edx, 0x525a48
call fcn.00404e3c
sete byte [ebp - 0x11]
lea eax, [ebp - 8]
mov ecx, esi
mov edx, 1
call fcn.00404f90
mov edx, dword [ebp - 8]
mov eax, 0x525a3c
call fcn.00405034
mov esi, eax
test esi, esi
je 0x5259fb
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00404f50
lea eax, [ebp - 8]
mov ecx, esi
mov edx, 1
call fcn.00404f90
mov edx, dword [ebp - 8]
mov eax, 0x525a3c
call fcn.00405034
mov esi, eax
test esi, esi
je 0x5259fb
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00404f50
lea eax, [ebp - 8]
mov ecx, esi
mov edx, 1
call fcn.00404f90
mov edx, dword [ebp - 8]
mov eax, 0x525a3c
call fcn.00405034
mov esi, eax
test esi, esi
je 0x5259fb
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00404f50
lea eax, [ebp - 8]
mov ecx, esi
mov edx, 1
call fcn.00404f90
mov edx, dword [ebp - 8]
mov eax, 0x525a3c
call fcn.00405034
mov esi, eax
test esi, esi
je 0x5259fb
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00404f50
lea eax, [ebp - 8]
mov ecx, esi
mov edx, 1
call fcn.00404f90
mov edx, dword [ebp - 8]
mov eax, 0x525a3c
call fcn.00405034
mov esi, eax
test esi, esi
je 0x5259fb
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00404f50
lea eax, [ebp - 8]
mov ecx, esi
mov edx, 1
call fcn.00404f90
mov edx, dword [ebp - 8]
mov eax, 0x525a3c
call fcn.00405034
mov esi, eax
test esi, esi
je 0x5259fb
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00404f50
lea eax, [ebp - 8]
mov ecx, esi
mov edx, 1
call fcn.00404f90
cmp dword [ebp - 0xc], 0
je 0x5259fb
mov eax, dword [ebp - 0xc]
cmp byte [eax], 0x5c
je 0x5256f5
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, 0x525a54
call fcn.00404d3c
lea edx, [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.004fc3a8
cmp dword [ebp - 8], 0
je 0x525711
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.00404ac8
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x24]
call fcn.00409448
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 0x24]
call fcn.00404ac8
cmp dword [ebp - 0x24], 0
je 0x525753
mov eax, dword [ebp - 0x24]
cmp byte [eax], 0x5c
je 0x525745
lea eax, [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
mov edx, 0x525a54
call fcn.00404d3c
lea eax, [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x10]
call fcn.00404d3c
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 0x2c]
call fcn.00409448
mov edx, dword [ebp - 0x44]
lea eax, [ebp - 0x2c]
call fcn.00404ac8
cmp dword [ebp - 0x2c], 0
je 0x525795
mov eax, dword [ebp - 0x2c]
cmp byte [eax], 0x5c
je 0x525787
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x2c]
mov edx, 0x525a54
call fcn.00404d3c
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x10]
call fcn.00404d3c
mov edx, dword [0x5d5508]
mov edx, dword [edx]
lea eax, [ebp - 0x48]
mov ecx, dword [ebp - 0xc]
call fcn.00404d3c
mov eax, dword [ebp - 0x48]
call fcn.00409c9c
test al, al
je 0x5258b8
push dword [ebp - 0x10]
push 0x525a54
mov edx, dword [0x5d5508]
mov edx, dword [edx]
lea eax, [ebp - 0x50]
mov ecx, dword [ebp - 0xc]
call fcn.00404d3c
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x4c]
call fcn.0040a19c
push dword [ebp - 0x4c]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404db0
mov eax, dword [ebp - 0x10]
call fcn.00409c9c
xor al, 1
or bl, al
je 0x525996
cmp byte [ebp - 0x11], 0
je 0x525871
mov eax, dword [ebp - 0x20]
mov edx, 0x525a60
call fcn.00404e3c
jne 0x525837
push 0x40
mov eax, dword [ebp - 0x18]
call fcn.00404ef0
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00404ef0
mov edx, eax
mov eax, dword [0x5d51bc]
mov eax, dword [eax]
pop ecx
call fcn.004a2384
mov eax, dword [ebp - 0x20]
mov edx, 0x525a6c
call fcn.00404e3c
jne 0x525871
push 0x44
mov eax, dword [ebp - 0x18]
call fcn.00404ef0
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00404ef0
mov edx, eax
mov eax, dword [0x5d51bc]
mov eax, dword [eax]
pop ecx
call fcn.004a2384
cmp eax, 6
jne 0x5259fb
mov eax, dword [ebp - 0x10]
call fcn.00409c9c
test al, al
je 0x525887
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.00409df4
push 0
mov eax, dword [ebp - 0x10]
call fcn.00404ef0
push eax
mov edx, dword [0x5d5508]
mov edx, dword [edx]
lea eax, [ebp - 0x54]
mov ecx, dword [ebp - 0xc]
call fcn.00404d3c
mov eax, dword [ebp - 0x54]
call fcn.00404ef0
push eax
call sub.kernel32.dll_CopyFileA
jmp 0x525996
mov edx, dword [0x5d5508]
mov edx, dword [edx]
lea eax, [ebp - 0x58]
mov ecx, dword [ebp - 0xc]
call fcn.00404d3c
mov eax, dword [ebp - 0x58]
call fcn.00409cac
test al, al
je 0x5259fb
push ebp
mov edx, dword [0x5d5508]
mov edx, dword [edx]
lea eax, [ebp - 0x5c]
mov ecx, dword [ebp - 0xc]
call fcn.00404d3c
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x10]
call fcn.00525188
pop ecx
xor al, 1
or al, bl
je 0x525996
cmp byte [ebp - 0x11], 0
je 0x525976
mov eax, dword [ebp - 0x20]
mov edx, 0x525a60
call fcn.00404e3c
jne 0x52593c
push 0x40
mov eax, dword [ebp - 0x18]
call fcn.00404ef0
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00404ef0
mov edx, eax
mov eax, dword [0x5d51bc]
mov eax, dword [eax]
pop ecx
call fcn.004a2384
mov eax, dword [ebp - 0x20]
mov edx, 0x525a6c
call fcn.00404e3c
jne 0x525976
push 0x44
mov eax, dword [ebp - 0x18]
call fcn.00404ef0
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00404ef0
mov edx, eax
mov eax, dword [0x5d51bc]
mov eax, dword [eax]
pop ecx
call fcn.004a2384
cmp eax, 6
jne 0x5259fb
mov edx, dword [0x5d5508]
mov edx, dword [edx]
lea eax, [ebp - 0x60]
mov ecx, dword [ebp - 0xc]
call fcn.00404d3c
mov eax, dword [ebp - 0x60]
mov ecx, ebx
mov edx, dword [ebp - 0x10]
call fcn.00524e74
lea edx, [ebp - 0x64]
mov eax, dword [ebp - 0x24]
call fcn.00409448
cmp dword [ebp - 0x64], 0
je 0x5259d0
push 1
mov eax, dword [ebp - 0x2c]
call fcn.00404ef0
push eax
mov eax, dword [ebp - 0x28]
call fcn.00404ef0
push eax
mov eax, dword [ebp - 0x24]
call fcn.00404ef0
push eax
push 0x525a70
push 0
call sub.shell32.dll_ShellExecuteA
mov byte [ebp - 1], 1
jmp 0x5259fb
xor ecx, ecx
mov dl, 1
mov eax, dword [0x524c8c]
call fcn.0049a754
mov esi, eax
mov ecx, ebx
mov edx, edi
mov eax, esi
call fcn.00525a78
mov byte [ebp - 1], al
mov eax, esi
call fcn.00403bfc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x525a2a
lea eax, [ebp - 0x64]
mov edx, 0x14
call fcn.00404a54
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404a54
ret