Function at 0x42eb60
Capabilities:
Copy file
Query environment variable
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6d8
mov eax, dword [0x47c5a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push str.iNodeCustomXml.vrf
push edi
lea eax, [ebp - 0x23c]
push 0x46c9e8
push eax
mov dword [ebp - 0x6b8], esi
call fcn.00440e5a
xor ebx, ebx
push 0x104
lea ecx, [ebp - 0x133]
push ebx
push ecx
mov byte [ebp - 0x134], bl
call fcn.00440de0
push 0x104
lea edx, [ebp - 0x6a7]
push ebx
push edx
mov byte [ebp - 0x6a8], bl
call fcn.00440de0
push str.iNodeCustom.xml
push edi
lea eax, [ebp - 0x6a8]
push 0x46c9e8
push eax
call fcn.00440e5a
push esi
push edi
lea ecx, [ebp - 0x134]
push 0x46c9e8
push ecx
call fcn.00440e5a
add esp, 0x48
lea edx, [ebp - 0x6ac]
push edx
lea eax, [ebp - 0x6b0]
push eax
lea ecx, [ebp - 0x23c]
push ecx
mov dword [ebp - 0x6b0], ebx
mov dword [ebp - 0x6ac], ebx
call fcn.0043b820
add esp, 0xc
test eax, eax
je 0x42efc6
cmp dword [ebp - 0x6b0], ebx
jne 0x42efc6
cmp dword [ebp - 0x6ac], 0x100
jne 0x42efc6
push 0xef
lea edx, [ebp - 0x38f]
push ebx
push edx
mov byte [ebp - 0x390], bl
call fcn.00440de0
lea eax, [ebp - 0x23c]
push 0x472dc4
push eax
call fcn.00441bda
mov esi, eax
add esp, 0x14
cmp esi, ebx
je 0x42efc6
push esi
push 0xf0
lea ecx, [ebp - 0x390]
push 1
push ecx
call fcn.00441802
xor eax, eax
push ebx
push 0xf0
push esi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
call fcn.00441aa2
push esi
push 0x10
lea edx, [ebp - 0x2c]
push 1
push edx
call fcn.00441802
push esi
call fcn.00441527
push str.iNodeCustom.xml
push edi
lea eax, [ebp - 0x23c]
push 0x46c9e8
push eax
call fcn.00440e5a
add esp, 0x40
lea ecx, [ebp - 0x6ac]
push ecx
lea edx, [ebp - 0x6b0]
push edx
lea eax, [ebp - 0x23c]
push eax
call fcn.0043b820
add esp, 0xc
test eax, eax
je 0x42efc6
cmp dword [ebp - 0x6b0], ebx
jne 0x42efc6
cmp dword [ebp - 0x6ac], 0x31e8c
ja 0x42efc6
lea ecx, [ebp - 0x6b4]
push ecx
lea edx, [ebp - 0x2a0]
push edx
lea eax, [ebp - 0xc]
push 6
push eax
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], bx
mov dword [ebp - 0x6b4], 0x64
call fcn.00435f70
add esp, 0x10
test eax, eax
je 0x42efc6
lea ecx, [ebp - 0x23c]
push 0x472dc4
push ecx
call fcn.00441bda
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x42efc6
mov edx, dword [ebp - 0x6ac]
push esi
push edx
push 1
push 0x513eb8
call fcn.00441802
push esi
call fcn.00441527
mov edi, dword [ebp - 0x6ac]
xor eax, eax
add esp, 0x14
lea edi, [edi + 0x513eb8]
mov ecx, 0x3c
lea esi, [ebp - 0x390]
rep movsd dword es:[edi], dword [esi]
mov byte [ebp - 0x6d8], 0xff
mov dword [ebp - 0x6d7], eax
mov dword [ebp - 0x6d3], eax
mov dword [ebp - 0x6cf], eax
mov dword [ebp - 0x6cb], eax
mov dword [ebp - 0x6c7], eax
mov dword [ebp - 0x6c3], eax
mov dword [ebp - 0x6bf], eax
mov word [ebp - 0x6bb], ax
mov byte [ebp - 0x6b9], al
cmp dword [ebp + 0xc], ebx
je 0x42eed3
lea eax, [ebp - 0x6d8]
push eax
lea ecx, [ebp - 0x134]
push ecx
call fcn.0042d180
lea edx, [ebp - 0x134]
push edx
call fcn.00436550
add esp, 0xc
test eax, eax
jne 0x42eed3
push 0x105
lea eax, [ebp - 0x5a0]
push eax
push str.SystemRoot
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea eax, [ebp - 0x5a0]
dec eax
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x42ee32
mov ecx, dword [str._system32_]
mov edx, dword [0x46e4ec]
mov dword [eax], ecx
mov cx, word [0x46e4f0]
mov dword [eax + 4], edx
mov dl, byte [0x46e4f2]
mov word [eax + 8], cx
mov byte [eax + 0xa], dl
xor eax, eax
mov cl, byte [ebp + eax - 0x5a0]
mov byte [ebp + eax - 0x498], cl
inc eax
cmp cl, bl
jne 0x42ee61
mov eax, dword [ebp - 0x6b8]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x42ee80
lea edi, [ebp - 0x498]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x42ee90
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push ebx
lea eax, [ebp - 0x134]
rep movsb byte es:[edi], byte [esi]
push eax
lea ecx, [ebp - 0x498]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea edx, [ebp - 0x6d8]
push edx
lea eax, [ebp - 0x134]
push eax
call fcn.0042d180
add esp, 8
mov edi, dword [ebp - 0x6ac]
lea edi, [edi + 0x513fa8]
mov ecx, 8
lea esi, [ebp - 0x6d8]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x6b4]
mov eax, dword [ebp - 0x6ac]
push ecx
lea edx, [ebp - 0x2a0]
push edx
lea ecx, [eax + 0x513fc8]
push ecx
call fcn.004401a0
mov edx, dword [ebp - 0x6ac]
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x6b4]
lea ecx, [eax + edx + 0x110]
push ecx
lea edx, [ebp - 0x1c]
push 0x513eb8
push edx
call fcn.00428400
add esp, 0x18
mov eax, 0x10
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 0x1c]
lea ebx, [ebx]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x42ef7a
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x42ef50
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043fe0a
mov esp, ebp
pop ebp
ret
movzx eax, byte [edx]
movzx esi, byte [ecx]
sub eax, esi
jne 0x42efa6
movzx eax, byte [edx + 1]
movzx esi, byte [ecx + 1]
sub eax, esi
jne 0x42efa6
movzx eax, byte [edx + 2]
movzx esi, byte [ecx + 2]
sub eax, esi
jne 0x42efa6
movzx eax, byte [edx + 3]
movzx ecx, byte [ecx + 3]
sub eax, ecx
sar eax, 0x1f
or eax, 1
cmp eax, ebx
jne 0x42efc6
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043fe0a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0043fe0a
mov esp, ebp
pop ebp
ret