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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xc
push 0
push 0
dec ecx
jne 0x52264c
push ecx
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
xor eax, eax
push ebp
push 0x522c4b
push dword fs:[eax]
mov dword fs:[eax], esp
cmp bl, 0x2b
jne 0x522bfe
mov byte [ebp - 1], 0
lea eax, [ebp - 8]
mov edx, edi
call fcn.004044cc
mov edx, dword [ebp - 8]
mov eax, 0x522c64
call fcn.00404a38
mov esi, eax
test esi, esi
je 0x522c23
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.00408bdc
lea eax, [ebp - 8]
mov ecx, esi
mov edx, 1
call fcn.00404994
mov edx, dword [ebp - 8]
mov eax, 0x522c64
call fcn.00404a38
mov esi, eax
test esi, esi
je 0x522c23
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.00408bdc
lea eax, [ebp - 8]
mov ecx, esi
mov edx, 1
call fcn.00404994
mov edx, dword [ebp - 8]
mov eax, 0x522c64
call fcn.00404a38
mov esi, eax
test esi, esi
je 0x522c23
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, 0x522c70
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, 0x522c64
call fcn.00404a38
mov esi, eax
test esi, esi
je 0x522c23
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, 0x522c70
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, 0x522c64
call fcn.00404a38
mov esi, eax
test esi, esi
je 0x522c23
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, 0x522c64
call fcn.00404a38
mov esi, eax
test esi, esi
je 0x522c23
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, 0x522c64
call fcn.00404a38
mov esi, eax
test esi, esi
je 0x522c23
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, 0x522c64
call fcn.00404a38
mov esi, eax
test esi, esi
je 0x522c23
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, 0x522c64
call fcn.00404a38
mov esi, eax
test esi, esi
je 0x522c23
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, 0x522c64
call fcn.00404a38
mov esi, eax
test esi, esi
je 0x522c23
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 0x522c23
mov eax, dword [ebp - 0xc]
cmp byte [eax], 0x5c
je 0x52291d
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, 0x522c7c
call fcn.00404740
lea edx, [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.004fb518
cmp dword [ebp - 8], 0
je 0x522939
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.004044cc
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x24]
call fcn.00408bdc
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 0x24]
call fcn.004044cc
cmp dword [ebp - 0x24], 0
je 0x52297b
mov eax, dword [ebp - 0x24]
cmp byte [eax], 0x5c
je 0x52296d
lea eax, [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
mov edx, 0x522c7c
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.00408bdc
mov edx, dword [ebp - 0x44]
lea eax, [ebp - 0x2c]
call fcn.004044cc
cmp dword [ebp - 0x2c], 0
je 0x5229bd
mov eax, dword [ebp - 0x2c]
cmp byte [eax], 0x5c
je 0x5229af
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x2c]
mov edx, 0x522c7c
call fcn.00404740
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x10]
call fcn.00404740
mov edx, dword [0x5aeb50]
mov edx, dword [edx]
lea eax, [ebp - 0x48]
mov ecx, dword [ebp - 0xc]
call fcn.00404740
mov eax, dword [ebp - 0x48]
call fcn.00409430
test al, al
je 0x522ae0
push dword [ebp - 0x10]
push 0x522c7c
mov edx, dword [0x5aeb50]
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.00409930
push dword [ebp - 0x4c]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.004047b4
mov eax, dword [ebp - 0x10]
call fcn.00409430
xor al, 1
or bl, al
je 0x522bbe
cmp byte [ebp - 0x11], 0
je 0x522a99
mov eax, dword [ebp - 0x20]
mov edx, 0x522c88
call fcn.00404840
jne 0x522a5f
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 [0x5ae974]
mov eax, dword [eax]
pop ecx
call fcn.004a15f4
mov eax, dword [ebp - 0x20]
mov edx, 0x522c94
call fcn.00404840
jne 0x522a99
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 [0x5ae974]
mov eax, dword [eax]
pop ecx
call fcn.004a15f4
cmp eax, 6
jne 0x522c23
mov eax, dword [ebp - 0x10]
call fcn.00409430
test al, al
je 0x522aaf
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.00409588
push 0
mov eax, dword [ebp - 0x10]
call fcn.004048f4
push eax
mov edx, dword [0x5aeb50]
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 0x522bbe
mov edx, dword [0x5aeb50]
mov edx, dword [edx]
lea eax, [ebp - 0x58]
mov ecx, dword [ebp - 0xc]
call fcn.00404740
mov eax, dword [ebp - 0x58]
call fcn.00409440
test al, al
je 0x522c23
push ebp
mov edx, dword [0x5aeb50]
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.005223b0
pop ecx
xor al, 1
or al, bl
je 0x522bbe
cmp byte [ebp - 0x11], 0
je 0x522b9e
mov eax, dword [ebp - 0x20]
mov edx, 0x522c88
call fcn.00404840
jne 0x522b64
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 [0x5ae974]
mov eax, dword [eax]
pop ecx
call fcn.004a15f4
mov eax, dword [ebp - 0x20]
mov edx, 0x522c94
call fcn.00404840
jne 0x522b9e
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 [0x5ae974]
mov eax, dword [eax]
pop ecx
call fcn.004a15f4
cmp eax, 6
jne 0x522c23
mov edx, dword [0x5aeb50]
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.0052209c
lea edx, [ebp - 0x64]
mov eax, dword [ebp - 0x24]
call fcn.00408bdc
cmp dword [ebp - 0x64], 0
je 0x522bf8
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 0x522c98
push 0
call sub.shell32.dll_ShellExecuteA
mov byte [ebp - 1], 1
jmp 0x522c23
xor ecx, ecx
mov dl, 1
mov eax, dword [0x521eb4]
call fcn.004999c4
mov esi, eax
mov ecx, ebx
mov edx, edi
mov eax, esi
call fcn.00522ca0
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 0x522c52
lea eax, [ebp - 0x64]
mov edx, 0x14
call fcn.00404458
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404458
ret