Function at 0x401d20
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4507a6
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x469744]
xor eax, esp
mov dword [esp + 0x278], eax
push ebx
push esi
push edi
mov eax, dword [0x469744]
xor eax, esp
push eax
lea eax, [esp + 0x290]
mov dword fs:[0], eax
mov esi, ecx
mov eax, 7
xor ebx, ebx
xor ecx, ecx
mov edi, edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], cx
mov dword [esp + 0x298], ebx
xor edx, edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], ebx
mov word [esp + 0x44], dx
push 0x104
lea eax, [esp + 0x80]
push eax
push ebx
mov byte [esp + 0x2a4], 1
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x7c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.install.cfg
lea edx, [esp + 0x80]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x46bf58
lea eax, [esp + 0x80]
call fcn.00424200
add esp, 4
test eax, eax
je 0x401df7
push 1
mov eax, 0x457440
mov ecx, 0x46bf58
call fcn.00403640
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401e00
sub eax, edx
sar eax, 1
push eax
mov eax, esi
mov ecx, 0x46bf58
call fcn.00403640
push 3
push 0x457444
push 0x46bf58
xor eax, eax
call fcn.00403110
cmp eax, 0xffffffff
je 0x401e4b
push 4
push 0x45744c
push eax
mov eax, 3
mov ecx, 0x46bf58
call fcn.00402f20
push 3
push 0x457458
push 0x46bf58
xor eax, eax
call fcn.00403110
cmp eax, 0xffffffff
je 0x401e7a
push 4
push str._v__
push eax
mov eax, 3
mov ecx, 0x46bf58
call fcn.00402f20
cmp dword [0x46bf68], ebx
mov ebx, 8
je 0x402077
mov eax, dword [0x46bf58]
cmp dword [0x46bf6c], ebx
jae 0x401e9d
mov eax, 0x46bf58
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [esp + 0x20], eax
test eax, eax
je 0x402119
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
jle 0x402057
jmp 0x401ed0
mov edx, dword [esp + 0x18]
mov eax, dword [eax + edx*4]
movzx ecx, word [eax]
cmp ecx, 0x2d
je 0x401ee8
cmp ecx, 0x2f
je 0x401ee8
xor ebx, ebx
jmp 0x401ef0
mov ebx, 1
add eax, 2
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x401ef5
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x2c]
call fcn.00406550
cmp dword [esp + 0x14], 0
je 0x401f71
test ebx, ebx
je 0x401f45
push 0x457440
push ecx
mov eax, esi
push eax
push 0x46bec0
call fcn.00404350
add esp, 0xc
push eax
call fcn.004045e0
add esp, 8
mov dword [esp + 0x14], 0
jmp 0x40203b
lea edx, [esp + 0x44]
mov ecx, 0x46bea0
call fcn.00402590
push 0
lea edx, [esp + 0x2c]
mov ecx, eax
push edx
or eax, 0xffffffff
call fcn.00406170
mov dword [esp + 0x14], 0
jmp 0x40203b
test ebx, ebx
je 0x40201a
xor esi, esi
cmp dword [esp + 0x38], esi
jbe 0x401fae
mov ecx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x28]
mov eax, ebx
cmp ecx, 8
jae 0x401f96
lea eax, [esp + 0x28]
mov ebx, eax
movzx eax, word [eax + esi*2]
push eax
call fcn.0043a570
mov word [ebx + esi*2], ax
inc esi
add esp, 4
cmp esi, dword [esp + 0x38]
jb 0x401f81
cmp dword [esp + 0x3c], 8
mov eax, dword [esp + 0x28]
jae 0x401fbd
lea eax, [esp + 0x28]
push eax
lea ebx, [esp + 0x28]
call fcn.00401c90
test eax, eax
je 0x40200d
cmp dword [esp + 0x24], 0
je 0x401fef
push 0
lea ecx, [esp + 0x2c]
push ecx
or eax, 0xffffffff
lea ecx, [esp + 0x4c]
call fcn.00406170
mov dword [esp + 0x14], 1
jmp 0x40203b
lea edx, [esp + 0x28]
mov ecx, 0x46bea0
call fcn.00402590
mov esi, eax
push 0
mov eax, 0x457424
call fcn.00406550
jmp 0x40203b
push 0x457440
push ecx
lea edx, [esp + 0x30]
push edx
jmp 0x402025
push 0x457440
push ecx
lea eax, [esp + 0x30]
push eax
push 0x46bec0
call fcn.00404350
add esp, 0xc
push eax
call fcn.004045e0
add esp, 8
mov eax, dword [esp + 0x18]
inc eax
cmp eax, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
jl 0x401ed0
mov ebx, 8
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x14], 0
je 0x402077
lea ecx, [esp + 0x28]
push ecx
push 0x46bec0
call fcn.00404350
add esp, 8
lea ecx, [esp + 0x60]
mov eax, 0x46beb0
call fcn.004027b0
xor edx, edx
cmp dword [eax + 0x10], edx
sete dl
mov esi, edx
cmp dword [esp + 0x74], ebx
jb 0x4020a2
mov eax, dword [esp + 0x60]
push eax
call fcn.00439c00
add esp, 4
xor ecx, ecx
mov edi, 7
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], 0
mov word [esp + 0x60], cx
cmp dword [esp + 0x58], ebx
jb 0x4020cd
mov edx, dword [esp + 0x44]
push edx
call fcn.00439c00
add esp, 4
xor eax, eax
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], 0
mov word [esp + 0x44], ax
cmp dword [esp + 0x3c], ebx
jb 0x4020f3
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00439c00
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x290]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x278]
xor ecx, esp
call fcn.00438876
mov esp, ebp
pop ebp
ret
push 0x46bf58
jmp 0x40206a