Function at 0x404e20
Capabilities:
Accept command line arguments
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x441de6
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x4513e0]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4513e0]
xor eax, esp
push eax
lea eax, [esp + 0x288]
mov dword fs:[0], eax
xor ebp, ebp
mov eax, 7
mov esi, ecx
mov edi, edx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], ebp
mov word [esp + 0x48], bp
mov dword [esp + 0x290], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x78], eax
mov dword [esp + 0x74], ebp
mov word [esp + 0x64], bp
push 0x104
lea eax, [esp + 0x80]
push eax
push ebp
mov byte [esp + 0x29c], 1
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str.install.cfg
lea ecx, [esp + 0x80]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x453c0c
lea eax, [esp + 0x80]
call fcn.0041bda0
add esp, 4
test eax, eax
je 0x404ee3
push 1
push 0x446d74
mov ecx, 0x453c0c
call fcn.00403430
mov eax, esi
lea edx, [eax + 2]
jmp 0x404ef0
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x404ef0
sub eax, edx
sar eax, 1
push eax
push esi
mov ecx, 0x453c0c
call fcn.00403430
push 0x446d78
mov ebx, 3
xor eax, eax
mov edx, 0x453c0c
call fcn.004061d0
cmp eax, 0xffffffff
je 0x404f3a
push 4
push 0x446d80
push ebx
mov esi, eax
mov ebx, 0x453c0c
call fcn.00406020
push 0x446d8c
mov ebx, 3
xor eax, eax
mov edx, 0x453c0c
call fcn.004061d0
cmp eax, 0xffffffff
je 0x404f69
push 4
push str._v__
push ebx
mov esi, eax
mov ebx, 0x453c0c
call fcn.00406020
cmp dword [0x453c20], ebp
mov ebx, 8
je 0x405117
cmp dword [0x453c24], ebx
mov eax, dword [0x453c10]
jae 0x404f8c
mov eax, 0x453c10
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp eax, ebp
mov dword [esp + 0x20], eax
je 0x4051b1
cmp dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebp
jle 0x4050f8
mov ecx, dword [esp + 0x18]
mov eax, dword [eax + ecx*4]
movzx ecx, word [eax]
cmp cx, 0x2d
je 0x40501d
cmp cx, 0x2f
je 0x40501d
xor ebx, ebx
mov edx, eax
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x404fd1
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [esp + 0x4c]
call fcn.004035b0
cmp dword [esp + 0x14], ebp
je 0x40504d
cmp ebx, ebp
je 0x405027
push 0x446d74
push ecx
mov edx, esi
push edx
push 0x453b8c
call fcn.004069e0
add esp, 0xc
push eax
call fcn.00406c60
add esp, 8
mov dword [esp + 0x14], ebp
jmp 0x4050da
mov ebx, 1
lea edx, [eax + 2]
jmp 0x404fcc
lea eax, [esp + 0x60]
push eax
mov ecx, 0x453b78
call fcn.00402690
push 0xffffffffffffffff
mov ecx, eax
push ebp
lea eax, [esp + 0x4c]
call fcn.00403500
mov dword [esp + 0x14], ebp
jmp 0x4050da
cmp ebx, ebp
je 0x4050b9
cmp dword [esp + 0x5c], 8
mov eax, dword [esp + 0x48]
jae 0x405060
lea eax, [esp + 0x48]
push eax
lea ebx, [esp + 0x28]
call fcn.00404d90
test eax, eax
je 0x4050ac
cmp dword [esp + 0x24], ebp
je 0x40508e
push 0xffffffffffffffff
push ebp
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x68]
call fcn.00403500
mov dword [esp + 0x14], 1
jmp 0x4050da
lea ecx, [esp + 0x44]
push ecx
mov ecx, 0x453b78
call fcn.00402690
push ebp
push 0x44698c
mov esi, eax
call fcn.004035b0
jmp 0x4050da
push 0x446d74
push ecx
lea edx, [esp + 0x4c]
push edx
jmp 0x4050c4
push 0x446d74
push ecx
lea eax, [esp + 0x4c]
push eax
push 0x453b8c
call fcn.004069e0
add esp, 0xc
push eax
call fcn.00406c60
add esp, 8
mov eax, dword [esp + 0x18]
add eax, 1
cmp eax, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
jl 0x404fb2
mov ebx, 8
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x14], ebp
je 0x405117
lea ecx, [esp + 0x44]
push ecx
push 0x453b8c
call fcn.004069e0
add esp, 8
lea ecx, [esp + 0x28]
mov eax, 0x453b84
call fcn.00405770
xor edx, edx
cmp dword [eax + 0x14], ebp
sete dl
cmp dword [esp + 0x40], ebx
mov esi, edx
jb 0x405142
mov eax, dword [esp + 0x2c]
push eax
call fcn.00429d64
add esp, 4
cmp dword [esp + 0x78], ebx
mov edi, 7
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], ebp
mov word [esp + 0x2c], bp
jb 0x405167
mov ecx, dword [esp + 0x64]
push ecx
call fcn.00429d64
add esp, 4
cmp dword [esp + 0x5c], ebx
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], ebp
mov word [esp + 0x64], bp
jb 0x405187
mov edx, dword [esp + 0x48]
push edx
call fcn.00429d64
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x288]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.004289ca
add esp, 0x280
ret
push 0x453c0c
jmp 0x40510a