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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc4
mov eax, dword [0x510918]
xor eax, esp
mov dword [esp + 0xc0], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov dword [esp + 0x10], 0
call fcn.0040e0d0
call fcn.0040e160
mov eax, dword [0x513098]
and eax, 0x1f
cmp al, 0x1f
jne 0x403364
xor eax, eax
push 0xe
push str.Command_line:
lea ecx, [esp + 0x38]
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], 0
mov word [esp + 0x38], ax
mov byte [esp + 0x50], al
call fcn.00404c90
cmp word [esi], 0
jne 0x403317
xor ecx, ecx
jmp 0x40332f
mov ecx, esi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403320
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [esp + 0x38]
call fcn.00404c90
lea eax, [esp + 0x30]
push eax
push eax
push 0x11
push str.wWinMain
push 0x1f
call fcn.00428590
add esp, 0x14
cmp dword [esp + 0x44], 8
jb 0x403364
push dword [esp + 0x30]
call fcn.004a295f
add esp, 4
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
push dword [esp + 0x10]
mov esi, eax
push esi
lea ecx, [esp + 0x1c]
call section..text
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 4
xor eax, eax
push str.auto
lea ecx, [esp + 0x54]
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], 0
mov word [esp + 0x54], ax
call fcn.00402f90
xor eax, eax
mov word [esp + 0x68], ax
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x84], 7
mov dword [esp + 0x80], 0
call fcn.00401190
test al, al
je 0x403413
cmp dword [esp + 0x78], 0
jne 0x403413
mov bl, 1
jmp 0x403415
xor bl, bl
cmp dword [esp + 0x7c], 8
jb 0x403428
push dword [esp + 0x68]
call fcn.004a295f
add esp, 4
cmp dword [esp + 0x60], 8
jb 0x40343b
push dword [esp + 0x4c]
call fcn.004a295f
add esp, 4
test bl, bl
je 0x403544
push 0x1e
call dword [sym.imp.SHLWAPI.dll_IsOS]
test eax, eax
je 0x4034bc
mov eax, dword [0x513098]
and eax, 0x1f
cmp al, 0x1f
jne 0x4034b0
xor eax, eax
push 0x29
push str.Start_preferred_platform_resident_process
lea ecx, [esp + 0x38]
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], 0
mov word [esp + 0x38], ax
mov byte [esp + 0x50], al
call fcn.00404c90
lea eax, [esp + 0x30]
push eax
push eax
push 0x1b
push str.wWinMain
push 0x1f
call fcn.00428590
add esp, 0x14
cmp dword [esp + 0x44], 8
jb 0x4034b0
push dword [esp + 0x30]
call fcn.004a295f
add esp, 4
call fcn.004216f0
xor esi, esi
jmp 0x403b7e
call fcn.00404eb0
call fcn.00418f50
xor eax, eax
lea ecx, [esp + 0x80]
mov dword [esp + 0x94], 7
mov dword [esp + 0x90], 0
mov word [esp + 0x80], ax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov byte [esp + 0xb8], al
call fcn.0040f1b0
lea ecx, [esp + 0x80]
call fcn.0040e000
xor esi, esi
jmp 0x403b7e
push str.instanceid:
lea ecx, [esp + 0x6c]
call fcn.00403110
xor eax, eax
mov word [esp + 0x4c], ax
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], 0
call fcn.00401190
test al, al
je 0x40358b
cmp dword [esp + 0x5c], 0
je 0x40358b
mov bl, 1
jmp 0x40358d
xor bl, bl
cmp dword [esp + 0x60], 8
jb 0x4035a0
push dword [esp + 0x4c]
call fcn.004a295f
add esp, 4
cmp dword [esp + 0x7c], 8
jb 0x4035b3
push dword [esp + 0x68]
call fcn.004a295f
add esp, 4
test bl, bl
je 0x403703
xor eax, eax
push str.instanceid:
lea ecx, [esp + 0x50]
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], 0
mov word [esp + 0x6c], ax
call fcn.00403110
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x1c]
call fcn.00401190
cmp dword [esp + 0x60], 8
jb 0x403609
push dword [esp + 0x4c]
call fcn.004a295f
add esp, 4
mov edx, dword [esp + 0x78]
test edx, edx
je 0x40366f
cmp edx, 0x32
ja 0x40366f
cmp dword [esp + 0x7c], 8
mov ecx, dword [esp + 0x68]
push dword [esp + 0x10]
lea eax, [esp + 0x6c]
cmovae eax, ecx
lea eax, [eax + edx*2]
lea edx, [esp + 0x6c]
cmovae edx, ecx
push eax
push edx
call fcn.00410a50
add esp, 0xc
test al, al
je 0x40366f
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x84]
call fcn.0040df90
lea ecx, [esp + 0x80]
call fcn.0040f1b0
lea ecx, [esp + 0x80]
xor esi, esi
call fcn.0040e000
jmp 0x4036e7
mov eax, dword [0x513098]
and eax, 3
cmp al, 3
jne 0x4036e2
xor eax, eax
push 0x1f
push str.Invalid_argument_instanceid:
lea ecx, [esp + 0x38]
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], 0
mov word [esp + 0x38], ax
mov byte [esp + 0x50], al
call fcn.00404c90
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x3c]
call fcn.00402a00
lea eax, [esp + 0x30]
push eax
push eax
push 0x31
push str.wWinMain
push 3
call fcn.00428590
add esp, 0x14
cmp dword [esp + 0x44], 8
jb 0x4036e2
push dword [esp + 0x30]
call fcn.004a295f
add esp, 4
mov esi, 0xa0
cmp dword [esp + 0x7c], 8
jb 0x403b7e
push dword [esp + 0x68]
call fcn.004a295f
add esp, 4
jmp 0x403b7e
push str.load:
lea ecx, [esp + 0x34]
call fcn.00403110
xor eax, eax
mov word [esp + 0x4c], ax
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x1c]
mov ebx, 1
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], 0
call fcn.00401190
test al, al
je 0x40374f
cmp dword [esp + 0x5c], 0
mov byte [esp + 0xf], bl
jne 0x403754
mov byte [esp + 0xf], 0
cmp dword [esp + 0x60], 8
jb 0x403767
push dword [esp + 0x4c]
call fcn.004a295f
add esp, 4
cmp byte [esp + 0xf], 0
je 0x40379a
push str.params:
lea ecx, [esp + 0x6c]
call fcn.00403110
push 1
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x1c]
mov ebx, 3
call fcn.004010f0
mov byte [esp + 0xf], 1
test al, al
jne 0x40379f
mov byte [esp + 0xf], 0
test bl, 2
je 0x4037d1
and ebx, 0xfffffffd
cmp dword [esp + 0x7c], 8
jb 0x4037ba
push dword [esp + 0x68]
call fcn.004a295f
add esp, 4
xor eax, eax
mov dword [esp + 0x7c], 7
mov dword [esp + 0x78], 0
mov word [esp + 0x68], ax
test bl, 1
je 0x4037ec
and ebx, 0xfffffffe
cmp dword [esp + 0x44], 8
jb 0x4037ec
push dword [esp + 0x30]
call fcn.004a295f
add esp, 4
cmp byte [esp + 0xf], 0
je 0x403803
lea ecx, [esp + 0x14]
call fcn.0040d160
xor esi, esi
jmp 0x403b7e
push str.recover
lea ecx, [esp + 0x34]
call fcn.00403110
push 0
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x1c]
call fcn.004010f0
cmp dword [esp + 0x44], 8
mov byte [esp + 0xf], al
jb 0x40383c
push dword [esp + 0x30]
call fcn.004a295f
mov al, byte [esp + 0x13]
add esp, 4
test al, al
je 0x40384c
call fcn.0040e430
xor esi, esi
jmp 0x403b7e
push str.shutdown
lea ecx, [esp + 0x6c]
call fcn.00403110
push 0
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x1c]
or ebx, 4
call fcn.004010f0
test al, al
jne 0x4038c0
push str.uninstall
lea ecx, [esp + 0x50]
call fcn.00403110
push 0
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x1c]
or ebx, 8
call fcn.004010f0
test al, al
jne 0x4038c0
push str.shutdown:
lea ecx, [esp + 0x34]
call fcn.00403110
push 1
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x1c]
or ebx, 0x10
call fcn.004010f0
mov byte [esp + 0xf], 0
test al, al
je 0x4038c5
mov byte [esp + 0xf], 1
test bl, 0x10
je 0x4038d6
lea ecx, [esp + 0x30]
and ebx, 0xffffffef
call fcn.00403170
test bl, 8
je 0x4038e7
lea ecx, [esp + 0x4c]
and ebx, 0xfffffff7
call fcn.00403170
test bl, 4
je 0x4038f5
lea ecx, [esp + 0x68]
call fcn.00403170
cmp byte [esp + 0xf], 0
je 0x403a73
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
call fcn.00404030
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 0x10], eax
movzx eax, byte [0x5162cd]
push eax
lea eax, [esp + 0x14]
push eax
push ecx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x30]
call fcn.004040b0
lea ecx, [esp + 0x30]
push str.shutdown:
call fcn.00403110
lea eax, [esp + 0x30]
push 1
push eax
lea ecx, [esp + 0x1c]
call fcn.004010f0
lea ecx, [esp + 0x30]
mov bl, al
call fcn.00403170
test bl, bl
je 0x403a42
xor eax, eax
push str.shutdown:
lea ecx, [esp + 0x34]
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], 0
mov word [esp + 0x50], ax
call fcn.00403110
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x1c]
call fcn.00401190
lea ecx, [esp + 0x30]
call fcn.00403170
push 0x4ea5b8
lea ecx, [esp + 0x34]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
call fcn.00403110
push ecx
lea eax, [esp + 0x34]
push eax
lea edx, [esp + 0x54]
lea ecx, [esp + 0x70]
call fcn.004270c0
add esp, 8
lea ecx, [esp + 0x30]
call fcn.00403170
mov esi, dword [esp + 0x68]
mov edi, dword [esp + 0x6c]
cmp esi, edi
je 0x403a30
mov ecx, esi
call fcn.00428703
mov dword [esp + 0x10], eax
movzx eax, byte [0x5162cd]
push eax
lea eax, [esp + 0x14]
push eax
push ecx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x30]
call fcn.004040b0
add esi, 0x18
cmp esi, edi
jne 0x403a02
lea ecx, [esp + 0x68]
call fcn.00401500
lea ecx, [esp + 0x4c]
call fcn.00403170
lea ecx, [esp + 0x20]
call fcn.0040fcc0
mov eax, dword [esp + 0x20]
push eax
push dword [eax]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
call fcn.00403bc0
push dword [esp + 0x20]
call fcn.004a295f
add esp, 4
xor esi, esi
jmp 0x403b7e
push 0x4ea5bc
lea ecx, [esp + 0x34]
call fcn.00403110
push 1
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x1c]
call fcn.004010f0
lea ecx, [esp + 0x30]
mov bl, al
call fcn.00403170
test bl, bl
je 0x403aff
xor eax, eax
push 0x4ea5bc
lea ecx, [esp + 0x34]
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], 0
mov word [esp + 0x50], ax
call fcn.00403110
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x1c]
call fcn.00401190
lea ecx, [esp + 0x30]
call fcn.00403170
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x13]
call fcn.00412fb0
lea ecx, [esp + 0x4c]
mov esi, eax
call fcn.00403170
jmp 0x403b7e
mov eax, dword [0x513098]
and eax, 3
cmp al, 3
jne 0x403b79
xor eax, eax
mov word [esp + 0x4c], ax
mov byte [esp + 0x64], al
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], 0
call fcn.00401410
push str.Unexpected_params:
lea ecx, [esp + 0x50]
mov esi, eax
call fcn.00404c40
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.00402a00
lea ecx, [esp + 0x30]
call fcn.00403170
lea eax, [esp + 0x4c]
push eax
push eax
push 0x63
push str.wWinMain
push 3
call fcn.00428590
add esp, 0x14
lea ecx, [esp + 0x4c]
call fcn.00403170
mov esi, 1
mov edi, dword [esp + 0x14]
test edi, edi
je 0x403b9f
push dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
push ecx
mov ecx, edi
call fcn.00401e80
push edi
call fcn.004a295f
add esp, 0xc
mov ecx, dword [esp + 0xcc]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.004a2964
mov esp, ebp
pop ebp
ret 0x10