Function at 0x4138d0
Capabilities:
Copy file
Create process on windows
Query environment variable

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57c1fa
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x710
mov eax, dword [0x5e108c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x720], ecx
xor al, al
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x690]
mov byte [ebp - 0x6e9], al
call fcn.00480890
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x690]
mov esi, dword [ebp - 0x67c]
mov eax, 1
mov edi, dword [ebp - 0x680]
cmp esi, 0x10
mov edx, 0x5b46b0
cmovae ecx, dword [ebp - 0x690]
cmp edi, eax
cmovb eax, edi
push eax
call fcn.00429a70
add esp, 4
test eax, eax
jne 0x4140a4
cmp edi, 1
jb 0x4140a4
ja 0x4140a4
push 0x208
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.005065b0
add esp, 0xc
lea eax, [ebp - 0x428]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp dword [ebx + 0x18], 0
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
je 0x413a94
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.005065b0
add esp, 0xc
lea edx, [ebx + 8]
lea ecx, [ebp - 0x704]
call fcn.00430640
cmp dword [eax + 0x14], 8
jb 0x4139e5
mov eax, dword [eax]
push 0x104
lea ecx, [ebp - 0x220]
push ecx
push eax
call edi
mov eax, dword [ebp - 0x6f0]
cmp eax, 8
jb 0x413a12
inc eax
lea ecx, [ebp - 0x704]
push eax
push dword [ebp - 0x704]
call fcn.0040ca40
push 0x208
lea eax, [ebp - 0x630]
push 0
push eax
call fcn.005065b0
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x630]
push 0x5b5da4
push eax
call fcn.00427770
add esp, 0xc
lea eax, [ebp - 0x630]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x630]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x413a94
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x428]
push 0x5b5da4
push eax
call fcn.00427770
add esp, 0xc
mov edx, dword [ebp - 0x720]
mov dword [ebp - 0x664], 0xf
mov dword [ebp - 0x668], 0
mov byte [ebp - 0x678], 0
cmp byte [edx], 0
jne 0x413abe
xor ecx, ecx
jmp 0x413acc
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x413ac3
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x678]
call fcn.0040bda0
push 0xe
push 0x5b6194
lea ecx, [ebp - 0x704]
mov byte [ebp - 4], 3
call fcn.004313b0
mov esi, eax
mov byte [ebp - 4], 4
cmp dword [esi + 0x14], 0x10
jb 0x413afd
mov esi, dword [esi]
push 1
push 0x5b5dac
lea ecx, [ebp - 0x678]
call fcn.00425100
cmp byte [esi], 0
mov edx, eax
jne 0x413b1a
xor ecx, ecx
jmp 0x413b2f
mov ecx, esi
lea edi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x413b20
sub ecx, edi
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push ecx
push esi
mov ecx, edx
call fcn.00425100
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x6f0]
cmp eax, 0x10
jb 0x413b5a
inc eax
lea ecx, [ebp - 0x704]
push eax
push dword [ebp - 0x704]
call fcn.0040c0a0
mov edx, dword [ebp - 0x668]
lea ecx, [ebp - 0x678]
call fcn.0042e850
push 7
push 0x5b618c
lea ecx, [ebp - 0x71c]
call fcn.004313b0
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 0x10
jb 0x413b89
mov eax, dword [eax]
lea ecx, [ebp - 0x678]
mov edx, eax
push ecx
lea ecx, [ebp - 0x704]
call fcn.004277f0
add esp, 4
push eax
lea ecx, [ebp - 0x678]
mov byte [ebp - 4], 6
call fcn.00422690
mov eax, dword [ebp - 0x6f0]
cmp eax, 0x10
jb 0x413bce
inc eax
lea ecx, [ebp - 0x704]
push eax
push dword [ebp - 0x704]
call fcn.0040c0a0
mov eax, dword [ebp - 0x708]
mov dword [ebp - 0x6f0], 0xf
mov dword [ebp - 0x6f4], 0
mov byte [ebp - 0x704], 0
cmp eax, 0x10
jb 0x413c07
inc eax
lea ecx, [ebp - 0x71c]
push eax
push dword [ebp - 0x71c]
call fcn.0040c0a0
xor eax, eax
mov dword [ebp - 0x64c], 7
mov dword [ebp - 0x650], 0
mov word [ebp - 0x660], ax
mov byte [ebp - 4], 7
cmp dword [ebx + 0x30], eax
je 0x413cbd
push 0x208
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.005065b0
add esp, 0xc
lea edx, [ebx + 0x20]
lea ecx, [ebp - 0x71c]
call fcn.00430640
cmp dword [eax + 0x14], 8
jb 0x413c5c
mov eax, dword [eax]
push 0x104
lea ecx, [ebp - 0x220]
push ecx
push eax
call edi
mov eax, dword [ebp - 0x708]
cmp eax, 8
jb 0x413c89
inc eax
lea ecx, [ebp - 0x71c]
push eax
push dword [ebp - 0x71c]
call fcn.0040ca40
cmp word [ebp - 0x220], 0
jne 0x413c9d
xor ecx, ecx
lea eax, [ebp - 0x220]
jmp 0x413ce9
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413ca6
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
jmp 0x413ce9
cmp word [ebp - 0x428], 0
jne 0x413ccb
xor ecx, ecx
jmp 0x413ce3
lea ecx, [ebp - 0x428]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413cd4
sub ecx, edx
sar ecx, 1
lea eax, [ebp - 0x428]
push ecx
push eax
lea ecx, [ebp - 0x660]
call fcn.00424850
cmp byte [0x60c879], 0
je 0x413dc4
push 9
push 0x5b6180
lea ecx, [ebp - 0x71c]
call fcn.004313b0
mov byte [ebp - 4], 8
cmp dword [eax + 0x14], 0x10
jb 0x413d21
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x704]
push eax
call fcn.004304e0
add esp, 8
mov esi, eax
push 1
push 0x5b5db0
lea ecx, [ebp - 0x660]
mov byte [ebp - 4], 9
call fcn.00424850
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.00424980
mov eax, dword [ebp - 0x6f0]
cmp eax, 8
jb 0x413d73
inc eax
lea ecx, [ebp - 0x704]
push eax
push dword [ebp - 0x704]
call fcn.0040ca40
xor eax, eax
mov byte [ebp - 4], 7
mov word [ebp - 0x704], ax
mov eax, dword [ebp - 0x708]
mov dword [ebp - 0x6f0], 7
mov dword [ebp - 0x6f4], 0
cmp eax, 0x10
jb 0x413db2
inc eax
lea ecx, [ebp - 0x71c]
push eax
push dword [ebp - 0x71c]
call fcn.0040c0a0
push 1
push 0x5b5db0
lea ecx, [ebp - 0x660]
call fcn.00424850
push 1
push 0x5b5db0
lea ecx, [ebp - 0x660]
call fcn.00424850
lea edx, [ebp - 0x678]
lea ecx, [ebp - 0x71c]
call fcn.00430640
mov edx, eax
mov byte [ebp - 4], 0xa
cmp dword [edx + 0x14], 8
jb 0x413df5
mov edx, dword [edx]
cmp word [edx], 0
jne 0x413dff
xor ecx, ecx
jmp 0x413e13
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413e04
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x660]
call fcn.00424850
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x708]
cmp eax, 8
jb 0x413e42
inc eax
lea ecx, [ebp - 0x71c]
push eax
push dword [ebp - 0x71c]
call fcn.0040ca40
push 0x44
lea eax, [ebp - 0x6d8]
push 0
push eax
call fcn.005065b0
add esp, 0xc
mov dword [ebp - 0x6d8], 0x44
lea eax, [ebp - 0x428]
xorps xmm0, xmm0
lea ecx, [ebp - 0x648]
movups xmmword [ebp - 0x6e8], xmm0
push eax
call fcn.0040ba80
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x648]
cmp dword [ebp - 0x634], 8
mov eax, dword [ebp - 0x638]
cmovae ecx, dword [ebp - 0x648]
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x648]
mov esi, eax
cmovae ecx, dword [ebp - 0x648]
xor edi, edi
sub esi, ecx
xor edx, edx
inc esi
shr esi, 1
cmp ecx, eax
cmova esi, edi
test esi, esi
je 0x413ed1
lea eax, [edx + 0x5c]
cmp word [ecx], 0x2f
jne 0x413ec9
mov word [ecx], ax
inc edx
add ecx, 2
cmp edx, esi
jne 0x413ec0
push 1
push ecx
push str.e_:
lea ecx, [ebp - 0x648]
call fcn.00424130
cmp eax, 0xffffffff
je 0x413f31
inc eax
lea ecx, [ebp - 0x648]
push eax
push 0
lea eax, [ebp - 0x71c]
push eax
call fcn.00422200
push eax
lea ecx, [ebp - 0x648]
mov byte [ebp - 4], 0xc
call fcn.00422380
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x708]
cmp eax, 8
jb 0x413f31
inc eax
lea ecx, [ebp - 0x71c]
push eax
push dword [ebp - 0x71c]
call fcn.0040ca40
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x638], 0
jne 0x413f49
xor ecx, ecx
jmp 0x413f5d
cmp dword [ebp - 0x634], 8
lea ecx, [ebp - 0x648]
cmovae ecx, dword [ebp - 0x648]
cmp dword [ebp - 0x64c], 8
lea edx, [ebp - 0x6e8]
push edx
lea edx, [ebp - 0x6d8]
push edx
push ecx
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x660]
cmovae eax, dword [ebp - 0x660]
push 0
push eax
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x413ff4
cmp dword [0x60cd14], 0
jne 0x413fdf
push 8
push 0x5b6354
lea ecx, [ebp - 0x71c]
call fcn.004313b0
mov byte [ebp - 4], 0xd
cmp dword [eax + 0x14], 0x10
jb 0x413fc3
mov eax, dword [eax]
sub esp, 8
xor edx, edx
mov ecx, eax
push 0
call fcn.004801d0
add esp, 0xc
lea ecx, [ebp - 0x71c]
call fcn.0040bb00
push 0xffffffffffffffff
push dword [ebp - 0x6e8]
mov byte [ebp - 0x6e9], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x6e8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x6e4]
call esi
mov eax, dword [ebp - 0x634]
cmp eax, 8
jb 0x414028
inc eax
lea ecx, [ebp - 0x648]
push eax
push dword [ebp - 0x648]
call fcn.0040ca40
xor eax, eax
mov dword [ebp - 0x634], 7
mov word [ebp - 0x648], ax
mov eax, dword [ebp - 0x64c]
mov dword [ebp - 0x638], 0
cmp eax, 8
jb 0x414063
inc eax
lea ecx, [ebp - 0x660]
push eax
push dword [ebp - 0x660]
call fcn.0040ca40
xor eax, eax
mov dword [ebp - 0x64c], 7
mov word [ebp - 0x660], ax
mov eax, dword [ebp - 0x664]
mov dword [ebp - 0x650], 0
cmp eax, 0x10
jb 0x41409e
inc eax
lea ecx, [ebp - 0x678]
push eax
push dword [ebp - 0x678]
call fcn.0040c0a0
mov esi, dword [ebp - 0x67c]
xor byte [ebp - 0x6e9], 1
cmp esi, 0x10
jb 0x4140c5
lea eax, [esi + 1]
push eax
push dword [ebp - 0x690]
lea ecx, [ebp - 0x690]
call fcn.0040c0a0
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0x67c], 0xf
mov dword [ebp - 0x680], 0
mov byte [ebp - 0x690], 0
cmp eax, 0x10
jb 0x4140f5
inc eax
lea ecx, [ebx + 8]
push eax
push dword [ebx + 8]
call fcn.0040c0a0
mov ecx, dword [ebx + 0x34]
mov dword [ebx + 0x1c], 0xf
mov dword [ebx + 0x18], 0
mov byte [ebx + 8], 0
cmp ecx, 0x10
jb 0x41411c
inc ecx
push ecx
push dword [ebx + 0x20]
lea ecx, [ebx + 0x20]
call fcn.0040c0a0
mov al, byte [ebp - 0x6e9]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004f4655
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret