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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43dbd5
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x47b014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.0040d050
test al, al
je 0x406fce
cmp byte [edi + 0x34], 0
je 0x406ecf
push 0
mov ecx, edi
call fcn.00406ad0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
test esi, esi
je 0x406e50
push str.__postInstall
push esi
call fcn.00423018
add esp, 8
test eax, eax
je 0x406df4
call fcn.00404ed0
cmp byte [edi + 0x5c], 0
mov dword [edi + 0x14], eax
je 0x406dca
mov dword [ebp - 0x14], vtable.ClipIntegrator.0
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
push 1
mov dword [ebp - 0x10], 0
call fcn.004017e0
mov dword [ebp - 0x14], vtable.CATETIntegrator.0
push ecx
push 1
mov dword [ebp - 4], 1
call fcn.00401600
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.__preUninstall
push esi
call fcn.00423018
add esp, 8
test eax, eax
je 0x406e50
mov dword [ebp - 0x14], vtable.ClipIntegrator.0
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 2
push eax
push 2
mov dword [ebp - 0x10], 0
call fcn.004017e0
mov dword [ebp - 0x14], vtable.CATETIntegrator.0
push ecx
push 2
mov dword [ebp - 4], 3
call fcn.00401600
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x7c
call fcn.0042216a
push 0x7c
mov esi, eax
push 0
push esi
mov dword [ebp - 0x14], esi
call fcn.00423950
add esp, 0xc
mov ecx, esi
push 0x65
call fcn.0040b0c0
mov dword [esi], vtable.Sm2PtConfigDialog.0
mov ecx, esi
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], vtable.DynamicArray_class_DEVICE_INFORMATION_WRAPPER__unsigned_int_.0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 1
mov dword [esi + 0x78], 0
mov dword [edi + 0x18], esi
mov eax, dword [esi]
push 0
mov dword [0x481aa4], 0
call dword [eax + 0x14c]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x2710
push dword [edi + 0x38]
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
jne 0x406f85
push 0
push dword [edi + 0x40]
call ebx
test eax, eax
jne 0x406f02
push dword [edi + 0x38]
call esi
jmp 0x406f85
push 0
push 0
push 0
push 2
push dword [edi + 0x44]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
mov dword [ebp - 0x10], ecx
test ecx, ecx
jne 0x406f23
push dword [edi + 0x38]
call esi
jmp 0x406f85
mov eax, dword [edi + 0x20]
add ecx, 4
je 0x406f50
test eax, eax
je 0x406f50
mov esi, 0x104
movzx edx, word [eax]
test dx, dx
je 0x406f4b
mov word [ecx], dx
dec esi
add ecx, 2
add eax, 2
cmp esi, 1
ja 0x406f34
xor eax, eax
mov word [ecx], ax
push dword [edi + 0x40]
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
call esi
push dword [edi + 0x3c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x2710
push dword [edi + 0x40]
call ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [edi + 0x40]
call esi
push dword [edi + 0x38]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp byte [edi + 0x34], 0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x406fba
push 0xffffffffffffffff
push dword [edi + 0x38]
call ebx
test eax, eax
jne 0x406fba
push dword [edi + 0x40]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xffffffffffffffff
push dword [edi + 0x48]
call ebx
push dword [edi + 0x38]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [edi + 0x48]
call esi
push dword [edi + 0x40]
call esi
push dword [edi + 0x3c]
call esi
push dword [edi + 0x38]
call esi
push dword [edi + 0x44]
call esi
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret