Function at 0x43c4d0
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push ebp
mov eax, 0x404c
mov ebp, esp
push edi
push esi
push ebx
call fcn.005d4d10
sub esp, eax
movzx eax, word [0x724b10]
lea edi, [ebp - 0x4014]
mov dword [ebp - 0x403c], ecx
mov ecx, 0x7ff
mov word [ebp - 0x4018], ax
xor eax, eax
mov word [ebp - 0x4016], ax
xor eax, eax
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edx, [ebp - 0x4038]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
sub esp, 8
cmp dword [ebp - 0x4038], 1
mov dword [ebp - 0x4048], eax
jbe 0x43c6b2
mov esi, 1
mov eax, dword [ebp - 0x4048]
mov ebx, dword [eax + esi*4]
cmp word [ebx], 0x2f
je 0x43c780
mov dword [esp + 4], str._script
mov dword [esp], ebx
call sub.SHELL32.dll_StrStrIW
sub esp, 8
test eax, eax
je 0x43c6e3
add ebx, 0x10
mov dword [esp + 4], ebx
lea ebx, [ebp - 0x4018]
mov dword [esp], ebx
call sub.msvcrt.dll_wcscpy
mov dword [esp], ebx
call sub.msvcrt.dll_wcslen
test eax, eax
je 0x43c85c
movzx eax, word [0x724b10]
xor ecx, ecx
lea edi, [ebp - 0x2014]
mov word [ebp - 0x2016], cx
mov ecx, 0x7ff
mov word [ebp - 0x2018], ax
xor eax, eax
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2018]
mov dword [esp], ebx
mov dword [esp + 8], 0x1000
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov eax, dword [ebp - 0x403c]
sub esp, 0xc
lea ecx, [eax + 0x10]
mov ebx, dword [eax + 0x14]
mov dword [ebp - 0x4040], ecx
mov ecx, dword [eax + 0x10]
cmp ecx, ebx
mov dword [ebp - 0x4044], ecx
mov edi, ecx
je 0x43c61e
lea esi, [esi]
mov eax, dword [edi]
lea edx, [edi + 8]
cmp eax, edx
je 0x43c611
mov dword [esp], eax
call fcn.006eb330
add edi, 0x18
cmp ebx, edi
jne 0x43c600
mov eax, dword [ebp - 0x403c]
mov edx, dword [ebp - 0x4044]
lea ebx, [ebp - 0x4028]
lea edi, [ebp - 0x4030]
mov dword [ebp - 0x4030], ebx
mov dword [eax + 0x14], edx
lea eax, [ebp - 0x2018]
mov dword [esp], eax
call sub.msvcrt.dll_wcslen
lea edx, [eax + eax]
mov ecx, edx
sar ecx, 1
cmp ecx, 7
mov dword [ebp - 0x4034], ecx
ja 0x43c790
cmp ecx, 1
mov eax, dword [ebp - 0x4030]
je 0x43c7f0
test ecx, ecx
jne 0x43c7c9
xor edx, edx
mov dword [ebp - 0x402c], ecx
mov word [eax + ecx*2], dx
mov ecx, dword [ebp - 0x4040]
mov dword [esp], edi
call fcn.006b7b90
mov eax, dword [ebp - 0x4030]
sub esp, 4
cmp eax, ebx
je 0x43c6a3
mov dword [esp], eax
call fcn.006eb330
add esi, 1
cmp dword [ebp - 0x4038], esi
ja 0x43c542
mov eax, dword [ebp - 0x403c]
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov edx, eax
mov dword [ebp - 0x4040], eax
xor eax, eax
sub edx, ecx
sar edx, 3
imul edx, edx, 0xaaaaaaab
test edx, edx
jne 0x43c899
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [ebp - 0x403c]
mov eax, dword [ecx + 0x14]
sub eax, dword [ecx + 0x10]
sar eax, 3
imul eax, eax, 0xaaaaaaab
test eax, eax
je 0x43c6a3
lea eax, [ebp - 0x2010]
mov dword [esp], ebx
mov dword [ebp - 0x2018], eax
call sub.msvcrt.dll_wcslen
lea edi, [eax + eax]
mov edx, edi
sar edx, 1
cmp edx, 7
mov dword [ebp - 0x4030], edx
ja 0x43c7ff
cmp edx, 1
mov eax, dword [ebp - 0x2018]
je 0x43c851
test edx, edx
jne 0x43c830
xor ecx, ecx
mov dword [ebp - 0x2014], edx
mov word [eax + edx*2], cx
mov eax, dword [ebp - 0x403c]
lea ecx, [eax + 0x10]
lea eax, [ebp - 0x2018]
mov dword [esp], eax
call fcn.006b7b90
mov eax, dword [ebp - 0x2018]
lea ecx, [ebp - 0x2010]
sub esp, 4
cmp eax, ecx
jne 0x43c69b
jmp 0x43c6a3
mov edi, 0x2d
mov word [ebx], di
jmp 0x43c555
lea eax, [ebp - 0x4034]
mov ecx, edi
mov dword [esp + 4], 0
mov dword [ebp - 0x4044], edx
mov dword [esp], eax
call fcn.006c1e40
mov ecx, dword [ebp - 0x4034]
mov edx, dword [ebp - 0x4044]
sub esp, 8
mov dword [ebp - 0x4030], eax
mov dword [ebp - 0x4028], ecx
mov dword [esp + 8], edx
lea edx, [ebp - 0x2018]
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_memcpy
mov ecx, dword [ebp - 0x4034]
mov eax, dword [ebp - 0x4030]
jmp 0x43c674
movzx edx, word [ebp - 0x2018]
mov word [eax], dx
jmp 0x43c674
lea eax, [ebp - 0x4030]
lea ecx, [ebp - 0x2018]
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.006c1e40
mov edx, dword [ebp - 0x4030]
sub esp, 8
mov dword [ebp - 0x2018], eax
mov dword [ebp - 0x2010], edx
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x4030]
mov eax, dword [ebp - 0x2018]
jmp 0x43c73d
movzx ecx, word [ebx]
mov word [eax], cx
jmp 0x43c73d
mov dword [esp + 8], 0x1f
mov dword [esp + 4], str.Command_line_argument_missing._n
mov dword [esp], 0x719580
call fcn.006df330
mov dword [esp + 8], 0x1c
mov dword [esp + 4], str.Usage:_SDI__script:file.txt_n
mov dword [esp], 0x719580
call fcn.006df330
jmp 0x43c6b2
mov dword [esp + 4], 0x724ae6
mov eax, dword [ecx]
lea ebx, [ebp - 0x4018]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__wfopen]
test eax, eax
mov esi, eax
je 0x43cbd0
lea esi, [esi]
mov dword [esp + 8], esi
mov dword [esp + 4], 0x1000
mov dword [esp], ebx
call sub.msvcrt.dll_fgetws
test eax, eax
je 0x43caad
mov edi, ebx
jmp 0x43c8e3
add edi, 2
movzx eax, word [edi]
mov dword [esp], eax
call sub.msvcrt.dll_iswspace
test eax, eax
jne 0x43c8e0
mov dword [esp + 4], edi
mov dword [esp], ebx
call sub.msvcrt.dll_wcscpy
movzx eax, word [ebp - 0x4018]
cmp ax, 0x23
je 0x43c8c0
cmp ax, 0x3b
je 0x43c8c0
mov dword [esp], ebx
call sub.msvcrt.dll_wcslen
test eax, eax
je 0x43c8c0
mov dword [esp], ebx
call sub.msvcrt.dll_wcslen
cmp word [ebp + eax*2 - 0x401a], 0xa
je 0x43cb6f
lea eax, [ebp - 0x2010]
mov dword [esp], ebx
mov dword [ebp - 0x2018], eax
call sub.msvcrt.dll_wcslen
lea edi, [eax + eax]
mov edx, edi
sar edx, 1
cmp edx, 7
mov dword [ebp - 0x4030], edx
ja 0x43ca5b
cmp edx, 1
mov eax, dword [ebp - 0x2018]
je 0x43cae7
test edx, edx
jne 0x43ca8c
xor ecx, ecx
mov edi, dword [ebp - 0x403c]
mov dword [ebp - 0x2014], edx
mov word [eax + edx*2], cx
lea eax, [ebp - 0x2018]
mov ecx, edi
mov dword [esp], eax
call fcn.004396b0
mov eax, edi
sub esp, 4
mov edi, dword [edi + 8]
cmp edi, dword [eax + 0xc]
je 0x43cac2
test edi, edi
je 0x43cb5a
lea eax, [edi + 8]
mov ecx, dword [ebp - 0x2014]
mov dword [ebp - 0x4048], eax
mov dword [edi], eax
mov eax, dword [ebp - 0x2018]
add ecx, ecx
mov dword [ebp - 0x4044], ecx
mov edx, eax
mov dword [ebp - 0x4040], eax
add eax, ecx
je 0x43c9eb
test edx, edx
jne 0x43c9eb
mov dword [esp], 0x72407c
call fcn.006dfd70
mov eax, dword [ebp - 0x4044]
sar eax, 1
cmp eax, 7
mov dword [ebp - 0x4030], eax
ja 0x43caf6
cmp eax, 1
je 0x43cb86
test eax, eax
jne 0x43cc4a
mov edx, dword [ebp - 0x4040]
mov ecx, dword [ebp - 0x4048]
mov dword [ebp - 0x4044], edi
mov dword [edi + 4], eax
xor edi, edi
mov word [ecx + eax*2], di
mov eax, dword [ebp - 0x4044]
mov ecx, dword [ebp - 0x403c]
add eax, 0x18
mov dword [ecx + 8], eax
lea eax, [ebp - 0x2010]
cmp edx, eax
je 0x43c8c0
mov dword [esp], edx
call fcn.006eb330
jmp 0x43c8c0
lea eax, [ebp - 0x4030]
lea ecx, [ebp - 0x2018]
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.006c1e40
mov edx, dword [ebp - 0x4030]
sub esp, 8
mov dword [ebp - 0x2018], eax
mov dword [ebp - 0x2010], edx
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x4030]
mov eax, dword [ebp - 0x2018]
jmp 0x43c975
mov dword [esp], esi
call sub.msvcrt.dll_fclose
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x403c]
lea ecx, [eax + 4]
lea eax, [ebp - 0x2018]
mov dword [esp], eax
call fcn.006b7e00
sub esp, 4
mov edx, dword [ebp - 0x2018]
jmp 0x43ca40
movzx ecx, word [ebp - 0x4018]
mov word [eax], cx
jmp 0x43c975
lea eax, [ebp - 0x4030]
mov dword [esp + 4], 0
mov ecx, edi
mov dword [esp], eax
call fcn.006c1e40
mov edx, dword [ebp - 0x4030]
sub esp, 8
mov dword [edi], eax
mov dword [edi + 8], edx
mov edx, dword [ebp - 0x4044]
mov dword [esp], eax
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x4040]
mov dword [esp + 4], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x403c]
mov eax, dword [ebp - 0x4030]
mov ecx, dword [edi]
mov edx, dword [edx + 8]
mov dword [ebp - 0x4044], edx
mov edx, dword [ebp - 0x2018]
jmp 0x43ca25
mov edx, dword [ebp - 0x2018]
mov dword [ebp - 0x4044], 0
jmp 0x43ca2e
mov dword [esp], ebx
xor edi, edi
call sub.msvcrt.dll_wcslen
mov word [ebp + eax*2 - 0x401a], di
jmp 0x43c934
mov ecx, dword [ebp - 0x4040]
mov dword [ebp - 0x4044], edi
movzx ecx, word [ecx]
mov word [edi + 8], cx
mov ecx, dword [ebp - 0x4048]
jmp 0x43ca25
mov eax, dword [ebp - 0x403c]
mov eax, dword [eax + 0x10]
mov ebx, dword [eax]
mov dword [esp], 0x724aec
call sub.msvcrt.dll_wcslen
mov dword [esp + 4], 0x724aec
mov dword [esp + 8], eax
mov dword [esp], 0x719800
call fcn.006df6c0
test ebx, ebx
je 0x43cc55
mov dword [esp], ebx
call sub.msvcrt.dll_wcslen
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp], 0x719800
call fcn.006df6c0
mov dword [esp], 0x724b0c
call sub.msvcrt.dll_wcslen
mov dword [esp + 4], 0x724b0c
mov dword [esp + 8], eax
mov dword [esp], 0x719800
call fcn.006df6c0
xor eax, eax
jmp 0x43c6db
mov eax, dword [ebp - 0x4048]
jmp 0x43cb1c
mov eax, dword [0x719800]
mov ecx, dword [eax - 0xc]
add ecx, 0x719800
mov eax, dword [ecx + 0x14]
or eax, 1
mov dword [esp], eax
call fcn.006d85c0
sub esp, 4
jmp 0x43cc1f