Function at 0x405430
Capabilities:
Accept command line arguments
Set current directory

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x475190
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x250
mov eax, dword [0x49c128]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xorps xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0x104], eax
push ecx
push eax
mov dword [ebp - 0xb8], 0
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov dword [ebp - 0x108], esi
test esi, esi
jne 0x4054d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0x49cbb0
mov dword [ebp - 0x108], esi
test eax, eax
je 0x4055de
mov esi, 0x1f
jmp 0x405cc1
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x18], 0x49cb90
cmp eax, 2
jne 0x405547
mov eax, dword [esi + 4]
mov ecx, str.update_ready
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405516
test dx, dx
je 0x405512
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405516
add eax, 4
add ecx, 4
test dx, dx
jne 0x4054f0
xor eax, eax
jmp 0x40551b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4055de
lea ecx, [ebp - 0x38]
mov byte [ebp - 0x20], al
call fcn.00405d40
xor ecx, ecx
mov esi, 0x1f
test al, al
cmovne esi, ecx
lea ecx, [ebp - 0x38]
call fcn.00406b70
jmp 0x405cc1
cmp eax, 3
jne 0x4055de
mov eax, dword [esi + 4]
mov ecx, str.update_ready
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40557e
test dx, dx
je 0x40557a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40557e
add eax, 4
add ecx, 4
test dx, dx
jne 0x405558
xor eax, eax
jmp 0x405583
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4055de
mov edx, dword [esi + 8]
mov ecx, edx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 7
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4055a0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x38]
call fcn.00418a50
lea ecx, [ebp - 0x38]
mov byte [ebp - 0x20], 1
call fcn.00405d40
xor ecx, ecx
mov esi, 0x1f
test al, al
cmovne esi, ecx
lea ecx, [ebp - 0x38]
call fcn.00406b70
jmp 0x405cc1
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0xd0]
call fcn.00404cc0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x34], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0xbc]
movq qword [ebp - 0x24], xmm0
cmp edx, 8
jb 0x405650
mov ecx, dword [ebp - 0xd0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405646
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405cf4
push edx
push ecx
call fcn.004553f5
add esp, 8
cmp dword [ebp - 0x1c], 0
je 0x405660
mov esi, 0x1f
jmp 0x405c8b
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0xb4]
call fcn.00404230
mov eax, dword [ebp - 0x84]
test al, al
je 0x405682
mov esi, 0x1f
jmp 0x405c80
cmp dword [ebp - 0x88], 0x10
lea ecx, [ebp - 0x1c]
push ecx
push ecx
lea eax, [ebp - 0x9c]
cmovae eax, dword [ebp - 0x9c]
push eax
push ecx
lea ecx, [ebp - 0xe8]
call fcn.00404f90
movups xmm0, xmmword [ebp - 0xe8]
add esp, 0x10
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0xe8]
movups xmmword [ebp - 0xd0], xmm0
movq xmm0, qword [ebp - 0xd8]
push eax
movq qword [ebp - 0xc0], xmm0
call fcn.004083f0
lea eax, [ebp - 0xd0]
push eax
lea ecx, [ebp - 0xe8]
call fcn.00403b30
push eax
lea ecx, [ebp - 0x50]
call fcn.004083f0
mov edx, dword [ebp - 0xd4]
cmp edx, 8
jb 0x405733
mov ecx, dword [ebp - 0xe8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405729
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405cf9
push edx
push ecx
call fcn.004553f5
add esp, 8
mov edx, dword [ebp - 0xbc]
cmp edx, 8
jb 0x405773
mov ecx, dword [ebp - 0xd0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405769
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405cfe
push edx
push ecx
call fcn.004553f5
add esp, 8
cmp dword [ebp - 0x3c], 8
lea eax, [ebp - 0x50]
cmovae eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 7
push 0x489434
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], 7
call fcn.00418a50
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x100]
call fcn.004083f0
lea eax, [ebp - 0xd0]
push eax
lea ecx, [ebp - 0x100]
call fcn.00403b30
push eax
lea ecx, [ebp - 0xe8]
call fcn.004083f0
mov edx, dword [ebp - 0xec]
cmp edx, 8
jb 0x405822
mov ecx, dword [ebp - 0x100]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405818
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405d03
push edx
push ecx
call fcn.004553f5
add esp, 8
xor eax, eax
mov dword [ebp - 0xf0], 0
mov word [ebp - 0x100], ax
lea ecx, [ebp - 0x10c]
lea eax, [ebp - 0xe8]
mov dword [ebp - 0xec], 7
push eax
call fcn.004052a0
mov edx, dword [ebp - 0xd4]
cmp edx, 8
jb 0x405891
mov ecx, dword [ebp - 0xe8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405887
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405d08
push edx
push ecx
call fcn.004553f5
add esp, 8
mov edx, dword [ebp - 0xbc]
xor eax, eax
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xd4], 7
mov word [ebp - 0xe8], ax
cmp edx, 8
jb 0x4058ee
mov ecx, dword [ebp - 0xd0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4058e4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405d08
push edx
push ecx
call fcn.004553f5
add esp, 8
push 0x10
xorps xmm0, xmm0
mov dword [ebp - 0x5c], 0
push str.ProductAgent.dll
lea ecx, [ebp - 0xe8]
movlpd qword [ebp - 0x64], xmm0
mov dword [ebp - 0x80], vtable.ExportedObject_class_iproduct_agent_.0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 7
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xd4], 7
call fcn.00418a50
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0xd0]
call fcn.004083f0
lea eax, [ebp - 0xe8]
push eax
lea ecx, [ebp - 0xd0]
call fcn.00403b30
push eax
lea ecx, [ebp - 0x100]
call fcn.004083f0
mov edx, dword [ebp - 0xbc]
cmp edx, 8
jb 0x4059d9
mov ecx, dword [ebp - 0xd0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4059cf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405d0d
push edx
push ecx
call fcn.004553f5
add esp, 8
xor eax, eax
mov dword [ebp - 0xc0], 0
cmp dword [ebp - 0xec], 8
lea ecx, [ebp - 0x80]
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0x100]
cmovae eax, dword [ebp - 0x100]
push str.product_agent
push eax
mov dword [ebp - 0xbc], 7
call fcn.00406960
mov edx, dword [ebp - 0xec]
mov edi, eax
cmp edx, 8
jb 0x405a5a
mov ecx, dword [ebp - 0x100]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405a50
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405d12
push edx
push ecx
call fcn.004553f5
add esp, 8
mov edx, dword [ebp - 0xd4]
xor eax, eax
mov dword [ebp - 0xf0], 0
mov dword [ebp - 0xec], 7
mov word [ebp - 0x100], ax
cmp edx, 8
jb 0x405ab7
mov ecx, dword [ebp - 0xe8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405aad
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405d12
push edx
push ecx
call fcn.004553f5
add esp, 8
lea ecx, [ebp - 0x1b8]
push str.wWinMain
test edi, edi
je 0x405b2c
mov edx, 4
call fcn.00404b20
mov esi, eax
add esp, 4
mov al, byte [esi + 0x48]
test al, al
je 0x405af7
mov edx, str.ExportedObject.Init_err
mov ecx, esi
call fcn.00416af0
mov al, byte [esi + 0x48]
test al, al
je 0x405af7
push edi
mov ecx, esi
call fcn.00415010
lea ecx, [ebp - 0x158]
call fcn.004048b0
lea eax, [ebp - 0x158]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.00452e26
add esp, 4
mov esi, 0x1f
jmp 0x405c1f
mov edx, 0x10
call fcn.00404b20
mov esi, eax
add esp, 4
mov al, byte [esi + 0x48]
test al, al
je 0x405b66
mov edx, str.cmdline:
mov ecx, esi
call fcn.00416e30
mov al, byte [esi + 0x48]
test al, al
je 0x405b66
mov edi, dword [ebp - 0x104]
mov ecx, esi
mov edx, edi
call fcn.00416e30
jmp 0x405b6c
mov edi, dword [ebp - 0x104]
lea ecx, [ebp - 0x158]
call fcn.004048b0
lea eax, [ebp - 0x158]
mov dword [ebp - 4], 1
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.00452e26
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov ecx, dword [ebp - 0x74]
push edi
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
mov edi, eax
test edi, edi
je 0x405c1d
push str.wWinMain
mov edx, 4
lea ecx, [ebp - 0x260]
call fcn.00404b20
mov esi, eax
add esp, 4
mov al, byte [esi + 0x48]
test al, al
je 0x405beb
mov edx, str.ProductAgent.run_err
mov ecx, esi
call fcn.00416af0
mov al, byte [esi + 0x48]
test al, al
je 0x405beb
push edi
mov ecx, esi
call fcn.00415010
lea ecx, [ebp - 0x200]
call fcn.004048b0
lea eax, [ebp - 0x200]
mov dword [ebp - 4], 2
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.00452e26
add esp, 4
mov esi, 0x1f
jmp 0x405c1f
xor esi, esi
lea ecx, [ebp - 0x80]
call fcn.00406a80
lea ecx, [ebp - 0x10c]
call fcn.00405380
mov edx, dword [ebp - 0x3c]
cmp edx, 8
jb 0x405c6c
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405c62
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405d17
push edx
push ecx
call fcn.004553f5
add esp, 8
xor eax, eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
lea ecx, [ebp - 0xb4]
call fcn.00407790
mov edx, dword [ebp - 0x20]
cmp edx, 8
jb 0x405cc1
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405cb7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405d17
push edx
push ecx
call fcn.004553f5
add esp, 8
mov eax, dword [ebp - 0x108]
test eax, eax
je 0x405cd2
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004553e7
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
call fcn.00459a2f
call fcn.00459a2f
call fcn.00459a2f
call fcn.00459a2f
call fcn.00459a2f
call fcn.00459a2f
call fcn.00459a2f
call fcn.00459a2f
int3