Function at 0x43bb00
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.005e3260
sub esp, eax
movzx eax, word [0x738134]
lea edi, [ebp - 0x4014]
mov ebx, 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 - 0x4040], eax
jbe 0x43bd50
mov esi, 1
nop
mov eax, dword [ebp - 0x4040]
mov edi, dword [eax + esi*4]
cmp word [edi], 0x2f
jne 0x43bb87
mov eax, 0x2d
mov word [edi], ax
mov dword [esp + 4], str._script
mov dword [esp], edi
call sub.SHELL32.dll_StrStrIW
sub esp, 8
test eax, eax
je 0x43bf34
lea eax, [ebp - 0x4018]
add edi, 0x10
mov dword [esp + 4], edi
mov dword [esp], eax
mov edi, eax
mov dword [ebp - 0x403c], eax
call sub.msvcrt.dll_wcscpy
mov dword [esp], edi
call sub.msvcrt.dll_wcslen
test eax, eax
je 0x43c130
movzx eax, word [0x738134]
xor edi, edi
mov ecx, 0x7ff
mov word [ebp - 0x2016], di
lea edi, [ebp - 0x2014]
mov word [ebp - 0x2018], ax
xor eax, eax
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2018]
mov dword [esp + 8], 0x1000
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x403c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ecx, dword [ebx + 0x10]
mov eax, dword [ebx + 0x14]
sub esp, 0xc
cmp ecx, eax
mov dword [ebp - 0x4044], ecx
je 0x43bc70
lea edx, [ecx + 0x18]
mov edi, ecx
sub eax, edx
shr eax, 3
imul eax, eax, 0xaaaaaab
lea eax, [eax + eax*2]
lea eax, [ecx + eax*8 + 0x18]
mov dword [ebp - 0x403c], eax
lea esi, [esi]
lea edi, [edi]
mov eax, dword [edi]
lea edx, [edi + 8]
cmp eax, edx
je 0x43bf20
mov dword [esp], eax
add edi, 0x18
call fcn.006febf0
cmp edi, dword [ebp - 0x403c]
jne 0x43bc50
mov eax, dword [ebp - 0x4044]
lea edi, [ebp - 0x4028]
mov dword [ebp - 0x4030], edi
mov dword [ebx + 0x14], eax
lea eax, [ebp - 0x2018]
mov dword [esp], eax
call sub.msvcrt.dll_wcslen
add eax, eax
mov edx, eax
mov dword [ebp - 0x403c], eax
sar edx, 1
cmp edx, 7
mov dword [ebp - 0x4034], edx
ja 0x43c010
cmp edx, 1
mov eax, dword [ebp - 0x4030]
jne 0x43c070
movzx ecx, word [ebp - 0x2018]
mov word [eax], cx
xor ecx, ecx
mov dword [ebp - 0x402c], edx
mov word [eax + edx*2], cx
mov edx, dword [ebx + 0x14]
cmp edx, dword [ebx + 0x18]
je 0x43c080
test edx, edx
je 0x43bd2f
lea ecx, [edx + 8]
mov dword [edx], ecx
mov eax, dword [ebp - 0x4030]
cmp eax, edi
je 0x43c193
mov dword [edx], eax
mov eax, dword [ebp - 0x4028]
mov ecx, edx
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x402c]
mov dword [edx + 4], eax
mov dword [ebp - 0x4030], edi
xor edi, edi
mov word [ebp - 0x4028], di
lea edi, [ebp - 0x4028]
mov dword [ebp - 0x402c], 0
mov edx, ecx
mov eax, edi
add edx, 0x18
mov dword [ebx + 0x14], edx
cmp eax, edi
je 0x43bd41
mov dword [esp], eax
call fcn.006febf0
add esi, 1
cmp dword [ebp - 0x4038], esi
ja 0x43bb70
mov eax, dword [ebx + 0x10]
cmp dword [ebx + 0x14], eax
je 0x43c100
mov dword [esp + 4], 0x73810a
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__wfopen]
mov esi, eax
lea eax, [ebp - 0x4018]
test esi, esi
mov dword [ebp - 0x403c], eax
je 0x43c1bf
mov edi, dword [ebp - 0x403c]
mov dword [esp + 8], esi
mov dword [esp + 4], 0x1000
mov dword [esp], edi
call sub.msvcrt.dll_fgetws
test eax, eax
je 0x43c110
mov dword [ebp - 0x403c], edi
jmp 0x43bdb3
add edi, 2
movzx eax, word [edi]
mov dword [esp], eax
call sub.msvcrt.dll_iswspace
test eax, eax
jne 0x43bdb0
mov eax, dword [ebp - 0x403c]
mov dword [esp + 4], edi
mov dword [esp], eax
mov edi, eax
call sub.msvcrt.dll_wcscpy
movzx eax, word [ebp - 0x4018]
cmp ax, 0x3b
je 0x43bd85
cmp ax, 0x23
je 0x43bd85
mov dword [esp], edi
call sub.msvcrt.dll_wcslen
test eax, eax
je 0x43bd85
mov eax, dword [ebp - 0x403c]
mov dword [esp], eax
call sub.msvcrt.dll_wcslen
cmp word [ebp + eax*2 - 0x401a], 0xa
je 0x43c2de
lea eax, [ebp - 0x2010]
mov dword [ebp - 0x2018], eax
mov eax, dword [ebp - 0x403c]
mov dword [esp], 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 0x43c25a
cmp edx, 1
mov eax, dword [ebp - 0x2018]
jne 0x43c2fb
movzx ecx, word [ebp - 0x4018]
mov word [eax], cx
xor ecx, ecx
mov dword [ebp - 0x2014], edx
mov word [eax + edx*2], cx
lea eax, [ebp - 0x2018]
mov ecx, ebx
mov dword [esp], eax
call fcn.0043b490
sub esp, 4
mov edi, dword [ebx + 8]
cmp edi, dword [ebx + 0xc]
je 0x43c237
test edi, edi
je 0x43c1b2
lea eax, [edi + 8]
mov ecx, dword [ebp - 0x2014]
mov dword [ebp - 0x4040], eax
mov dword [edi], eax
mov eax, dword [ebp - 0x2018]
add ecx, ecx
mov dword [ebp - 0x4048], ecx
mov edx, eax
mov dword [ebp - 0x4044], eax
add eax, ecx
je 0x43bec1
test edx, edx
je 0x43c3a4
mov eax, dword [ebp - 0x4048]
sar eax, 1
cmp eax, 7
mov dword [ebp - 0x4030], eax
ja 0x43c305
cmp eax, 1
jne 0x43c36f
mov ecx, dword [ebp - 0x4044]
movzx ecx, word [ecx]
mov word [edi + 8], cx
mov ecx, edi
mov dword [edi + 4], eax
mov edi, dword [ebp - 0x4040]
mov word [edi + eax*2], 0
add ecx, 0x18
mov dword [ebx + 8], ecx
lea eax, [ebp - 0x2010]
cmp edx, eax
je 0x43bd85
mov dword [esp], edx
call fcn.006febf0
jmp 0x43bd85
add edi, 0x18
cmp edi, dword [ebp - 0x403c]
jne 0x43bc50
jmp 0x43bc70
mov eax, dword [ebx + 0x14]
cmp dword [ebx + 0x10], eax
je 0x43bd41
lea eax, [ebp - 0x2010]
mov dword [esp], edi
mov dword [ebp - 0x2018], eax
call sub.msvcrt.dll_wcslen
add eax, eax
mov edx, eax
mov dword [ebp - 0x403c], eax
sar edx, 1
cmp edx, 7
mov dword [ebp - 0x4030], edx
ja 0x43c0a3
cmp edx, 1
mov eax, dword [ebp - 0x2018]
jne 0x43c125
movzx ecx, word [edi]
mov word [eax], cx
xor ecx, ecx
mov dword [ebp - 0x2014], edx
mov word [eax + edx*2], cx
mov edx, dword [ebx + 0x14]
cmp edx, dword [ebx + 0x18]
je 0x43c170
test edx, edx
je 0x43bff2
lea ecx, [edx + 8]
lea edi, [ebp - 0x2010]
mov dword [edx], ecx
mov eax, dword [ebp - 0x2018]
cmp eax, edi
je 0x43c2b2
mov dword [edx], eax
mov eax, dword [ebp - 0x2010]
mov dword [edx + 8], eax
mov eax, edx
mov ecx, dword [ebp - 0x2014]
mov dword [edx + 4], ecx
lea ecx, [ebp - 0x2010]
xor edx, edx
mov word [ebp - 0x2010], dx
mov dword [ebp - 0x2014], 0
mov edx, eax
mov dword [ebp - 0x2018], ecx
mov eax, ecx
add edx, 0x18
mov dword [ebx + 0x14], edx
lea ecx, [ebp - 0x2010]
cmp eax, ecx
jne 0x43bd39
jmp 0x43bd41
lea eax, [ebp - 0x4034]
lea ecx, [ebp - 0x4030]
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.006c61c0
mov edx, dword [ebp - 0x4034]
sub esp, 8
mov dword [ebp - 0x4030], eax
mov dword [ebp - 0x4028], edx
mov ecx, dword [ebp - 0x403c]
mov dword [esp], eax
mov dword [esp + 8], ecx
lea ecx, [ebp - 0x2018]
mov dword [esp + 4], ecx
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x4034]
mov eax, dword [ebp - 0x4030]
jmp 0x43bcc7
test edx, edx
je 0x43bcc7
jmp 0x43c041
lea eax, [ebp - 0x4030]
lea ecx, [ebx + 0x10]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.006bbc40
sub esp, 8
mov eax, dword [ebp - 0x4030]
jmp 0x43bd35
lea eax, [ebp - 0x4030]
lea ecx, [ebp - 0x2018]
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.006c61c0
mov edx, dword [ebp - 0x4030]
sub esp, 8
mov dword [ebp - 0x2018], eax
mov dword [ebp - 0x2010], edx
mov ecx, dword [ebp - 0x403c]
mov dword [esp + 4], edi
mov dword [esp], eax
mov dword [esp + 8], ecx
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x4030]
mov eax, dword [ebp - 0x2018]
jmp 0x43bf84
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
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
test edx, edx
je 0x43bf84
jmp 0x43c0d4
mov dword [esp + 8], 0x1f
mov dword [esp + 4], str.Command_line_argument_missing._n
mov dword [esp], 0x72d3c0
call fcn.006e3ac0
mov dword [esp + 8], 0x1d
mov dword [esp + 4], str.Usage:_SDIO__script:file.txt_n
mov dword [esp], 0x72d3c0
call fcn.006e3ac0
jmp 0x43bd50
lea eax, [ebp - 0x2018]
lea ecx, [ebx + 0x10]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.006bbc40
sub esp, 8
mov eax, dword [ebp - 0x2018]
jmp 0x43bff8
mov eax, dword [edi]
mov dword [edx + 8], eax
mov eax, dword [edi + 4]
mov dword [edx + 0xc], eax
mov eax, dword [edi + 8]
mov dword [edx + 0x10], eax
mov eax, dword [edi + 0xc]
mov dword [edx + 0x14], eax
mov ecx, dword [ebx + 0x14]
jmp 0x43bd03
mov edx, dword [ebp - 0x2018]
xor ecx, ecx
jmp 0x43beff
mov dword [esp], 0x738110
call sub.msvcrt.dll_wcslen
mov dword [esp + 4], 0x738110
mov dword [esp + 8], eax
mov dword [esp], 0x72d640
call fcn.006e3e70
mov eax, dword [ebx + 0x10]
mov ebx, dword [eax]
test ebx, ebx
je 0x43c380
mov dword [esp], ebx
call sub.msvcrt.dll_wcslen
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp], 0x72d640
call fcn.006e3e70
mov dword [esp], 0x738130
call sub.msvcrt.dll_wcslen
mov dword [esp + 4], 0x738130
mov dword [esp + 8], eax
mov dword [esp], 0x72d640
call fcn.006e3e70
xor eax, eax
jmp 0x43c102
lea eax, [ebp - 0x2018]
lea ecx, [ebx + 4]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.006bb900
sub esp, 8
mov edx, dword [ebp - 0x2018]
jmp 0x43bf05
lea eax, [ebp - 0x4030]
lea ecx, [ebp - 0x2018]
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.006c61c0
mov edx, dword [ebp - 0x4030]
sub esp, 8
mov dword [ebp - 0x2018], eax
mov dword [ebp - 0x2010], edx
mov ecx, dword [ebp - 0x403c]
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], ecx
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x4030]
mov eax, dword [ebp - 0x2018]
jmp 0x43be5b
mov eax, dword [ebp - 0x2010]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x200c]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0x2008]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 0x2004]
mov dword [edx + 0x14], eax
mov eax, dword [ebx + 0x14]
jmp 0x43bfc6
mov eax, dword [ebp - 0x403c]
xor edi, edi
mov dword [esp], eax
call sub.msvcrt.dll_wcslen
mov word [ebp + eax*2 - 0x401a], di
jmp 0x43be12
test edx, edx
je 0x43be5b
jmp 0x43c28b
lea eax, [ebp - 0x4030]
mov dword [esp + 4], 0
mov ecx, edi
mov dword [esp], eax
call fcn.006c61c0
mov dword [ebp - 0x4040], eax
mov dword [edi], eax
sub esp, 8
mov eax, dword [ebp - 0x4030]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x4048]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x4044]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x4040]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov ecx, dword [edi]
mov eax, dword [ebp - 0x4030]
mov edx, dword [ebp - 0x2018]
mov dword [ebp - 0x4040], ecx
mov ecx, dword [ebx + 8]
jmp 0x43bef0
test eax, eax
jne 0x43c331
mov ecx, edi
mov edx, dword [ebp - 0x4044]
jmp 0x43bef0
mov eax, dword [0x72d640]
mov ecx, dword [eax - 0xc]
add ecx, 0x72d640
mov eax, dword [ecx + 0x14]
or eax, 1
mov dword [esp], eax
call fcn.006dd620
sub esp, 4
jmp 0x43c20c
mov dword [esp], 0x737fbc
call fcn.006e4530
mov edx, dword [ebp - 0x2018]
mov ebx, eax
lea eax, [ebp - 0x2010]
cmp edx, eax
je 0x43c3ca
mov dword [esp], edx
call fcn.006febf0
mov dword [esp], ebx
call fcn.005e6130
jmp 0x43c3b0