Function at 0x406982
Capabilities:
Copy file
Create process on windows
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0xe70]
sub esp, 0xeec
mov eax, dword [0x426d40]
xor eax, ebp
mov dword [ebp + 0xe6c], eax
mov eax, dword [ebp + 0xe78]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xe7c]
push esi
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0xe84]
push edi
mov dword [ebp - 0x24], eax
xor eax, eax
mov edi, 0x208
push edi
mov word [ebp + 0x60c], ax
xor ebx, ebx
lea eax, [ebp + 0x60e]
push ebx
push eax
call fcn.0040b790
mov esi, 0x104
push esi
push dword [ebp - 0x20]
lea eax, [ebp + 0x60c]
push eax
call fcn.0040cb6f
xor eax, eax
push edi
mov word [ebp + 0xc30], ax
lea eax, [ebp + 0xc32]
push ebx
push eax
call fcn.0040b790
push esi
push dword [ebp - 0x20]
lea eax, [ebp + 0xc30]
push eax
call fcn.0040cb6f
lea eax, [ebp + 0xc30]
push 0x420600
push eax
call fcn.004064ab
add esp, 0x38
test eax, eax
jne 0x406a34
xor eax, eax
jmp 0x406d03
lea eax, [ebp + 0xc30]
push eax
push 0x105
lea eax, [ebp + 0x1f4]
push eax
push ebx
push 0x4205e8
push 0x4205cc
mov byte [ebp - 0x1a], 1
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x406a2d
lea eax, [ebp + 0xc30]
push eax
push 0x105
lea eax, [ebp + 0x400]
push eax
push ebx
push 0x4205bc
push 0x4205cc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x406a2d
lea eax, [ebp + 0xc30]
push eax
push 0xa
lea eax, [ebp + 0xe3c]
push eax
push 0x4205b0
push 0x42059c
push 0x4205cc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x406a2d
xor eax, eax
push edi
mov word [ebp + 0xa24], ax
lea eax, [ebp + 0xa26]
push ebx
push eax
call fcn.0040b790
push esi
push dword [ebp - 0x20]
lea eax, [ebp + 0xa24]
push eax
call fcn.0040cb6f
lea eax, [ebp + 0x1f4]
push eax
lea eax, [ebp + 0xa24]
push eax
call fcn.004064ab
add esp, 0x20
test eax, eax
je 0x406a2d
push 0x420578
lea eax, [ebp + 0xa24]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004068fa
add esp, 0xc
test eax, eax
je 0x406a2d
xor eax, eax
push edi
mov word [ebp + 0x818], ax
lea eax, [ebp + 0x81a]
push ebx
push eax
call fcn.0040b790
push esi
push dword [ebp - 0x28]
lea eax, [ebp + 0x818]
push eax
call fcn.0040cb6f
lea eax, [ebp + 0x818]
push 0x41fc04
push eax
call fcn.004064ab
add esp, 0x20
test eax, eax
je 0x406a2d
push 6
xor eax, eax
pop ecx
mov word [ebp + 0xe50], ax
lea edi, [ebp + 0xe52]
rep stosd dword es:[edi], eax
push 0xd
stosw word es:[edi], ax
lea eax, [ebp + 0xe50]
push 0x42055c
push eax
call fcn.0040cb6f
lea eax, [ebp + 0x400]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x406b92
sub eax, edx
sar eax, 1
mov ecx, eax
lea eax, [ebp + 0xe50]
lea edx, [eax + 2]
mov si, word [eax]
add eax, 2
cmp si, bx
jne 0x406bac
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
lea eax, [esi + esi + 2]
push eax
call fcn.0040ba14
mov edi, eax
pop ecx
mov dword [ebp - 0x20], edi
cmp edi, ebx
je 0x406a2d
push esi
lea eax, [ebp + 0xe50]
push eax
push edi
call fcn.0040cb6f
lea eax, [ebp + 0x400]
add esp, 0xc
mov edx, eax
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x406bef
sub eax, edx
sub edi, 2
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x406bff
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp byte [ebp + 0xe80], bl
jne 0x406c57
push 6
lea eax, [ebp + 0xe3c]
push 0x420550
push eax
call fcn.0040e068
add esp, 0xc
test eax, eax
je 0x406c57
push 2
lea eax, [ebp + 0xe3c]
push 0x42054c
push eax
call fcn.0040e068
add esp, 0xc
test eax, eax
jne 0x406c5a
mov byte [ebp - 0x1a], bl
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x818]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0x3c
lea eax, [ebp - 0x74]
push ebx
push eax
mov dword [ebp - 0x7c], 0x44
mov dword [ebp - 0x78], ebx
call fcn.0040b790
xor eax, eax
mov dword [ebp - 0x38], ebx
lea edi, [ebp - 0x34]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x60c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x20]
lea eax, [ebp + 0xa24]
mov dword [ebp - 0x74], 0x41e324
push eax
cmp dword [ebp - 0x24], ebx
je 0x406cc5
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
jmp 0x406ccb
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [ebp - 0x20]
test eax, eax
setne byte [ebp - 0x19]
call fcn.0040b54d
pop ecx
cmp byte [ebp - 0x19], bl
je 0x406cff
cmp byte [ebp - 0x1a], bl
jne 0x406cef
push 0xffffffffffffffff
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x34]
call esi
movzx eax, byte [ebp - 0x19]
mov ecx, dword [ebp + 0xe6c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b774
add ebp, 0xe70
leave
ret