Function at 0x40a010
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a6548
mov eax, dword fs:[0]
push eax
sub esp, 0x270
push ebx
push esi
push edi
mov eax, dword [0x4c3518]
xor eax, esp
push eax
lea eax, [esp + 0x280]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x40a061
mov ecx, dword [esp + 0x280]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [eax + 0x10]
lea ebx, [eax + 0x14]
mov ecx, 0x4c602c
lea edi, [esp + 0x28]
call fcn.0040aff0
xor edi, edi
mov dword [esp + 0x288], edi
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x17c]
push 3
mov dword [esp + 0x17c], eax
push ecx
lea eax, [esp + 0x180]
call fcn.0040b0e0
lea edx, [esp + 0x24]
mov byte [esp + 0x288], 1
mov ecx, dword [esp + 0x178]
push edx
call fcn.00401bc0
mov byte [esp + 0x288], 3
mov eax, dword [esp + 0x178]
lea ecx, [esp + 0x17c]
cmp eax, ecx
je 0x40a0db
push eax
call fcn.0048556b
add esp, 4
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.__pid:_d__Server_cmdline:_s
call fcn.0040bde0
mov eax, dword [0x4c602c]
mov edx, dword [eax + 0xc]
add esp, 0xc
mov ecx, 0x4c602c
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x4c]
push eax
mov byte [esp + 0x28c], 4
call fcn.00401340
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x28]
mov byte [esp + 0x28c], 5
call fcn.00401450
test eax, eax
je 0x40a6f3
lea edx, [esp + 0x14]
push edx
mov ecx, str.get_device_id
call fcn.00401bc0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x50]
push ecx
mov byte [esp + 0x290], 6
call fcn.00401830
mov esi, eax
mov byte [esp + 0x288], 5
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a18a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, edi
je 0x40a2cf
call fcn.0040af80
push eax
lea esi, [esp + 0x34]
call fcn.00408ec0
mov esi, 0x10
mov byte [esp + 0x288], 7
cmp dword [eax + 0x18], esi
jb 0x40a1b8
mov eax, dword [eax + 4]
jmp 0x40a1bb
add eax, 4
push 3
lea ecx, [esp + 0x7c]
push eax
lea eax, [esp + 0x7c]
mov dword [esp + 0x7c], ecx
call fcn.0040b0e0
lea edx, [esp + 0x14]
mov byte [esp + 0x288], 8
mov ecx, dword [esp + 0x74]
push edx
call fcn.00401bc0
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0x78]
cmp eax, ecx
je 0x40a1fa
push eax
call fcn.0048556b
add esp, 4
mov byte [esp + 0x288], 0xb
cmp dword [esp + 0x48], esi
jb 0x40a215
mov edx, dword [esp + 0x34]
push edx
call fcn.00485321
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], edi
mov byte [esp + 0x34], 0
cmp dword [eax - 0xc], edi
jne 0x40a23f
mov edx, str.no_device
lea edi, [esp + 0x14]
call fcn.00401c70
jmp 0x40a278
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ebx, str._device
call fcn.0040ae80
add esp, 8
lea edi, [esp + 0x14]
mov byte [esp + 0x288], 0xc
call fcn.00402180
lea eax, [esp + 0x18]
mov byte [esp + 0x288], 0xb
call fcn.0040ae60
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.__pid:_d__get_device_id:_s
call fcn.0040bde0
add esp, 0xc
lea eax, [esp + 0x14]
lea edi, [esp + 0x1c]
call fcn.00402180
mov byte [esp + 0x288], 5
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a6f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40a6f3
lea ecx, [esp + 0x14]
push ecx
mov ecx, str.get_installed_apps_id
call fcn.00401bc0
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x50]
push eax
mov byte [esp + 0x290], 0xd
call fcn.00401830
mov esi, eax
mov byte [esp + 0x288], 5
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a31f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, edi
je 0x40a4a3
lea ecx, [esp + 0x30]
push ecx
call fcn.00416880
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x28c], 0xe
call fcn.0040af80
call fcn.00408bc0
call fcn.0040dbf0
mov ebx, eax
cmp ebx, edi
je 0x40a46c
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x3c]
xor esi, esi
sar eax, 2
cmp eax, edi
jbe 0x40a3ae
cmp esi, eax
jb 0x40a371
call fcn.00485b29
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + esi*4]
cmp eax, edi
je 0x40a39e
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
push eax
call edx
cmp eax, edi
je 0x40a39e
push eax
call fcn.0040db70
add esp, 4
cmp eax, edi
je 0x40a39e
mov edx, eax
mov ecx, ebx
call fcn.0040db40
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x3c]
inc esi
sar eax, 2
cmp esi, eax
jb 0x40a371
push edi
push edi
push ebx
call fcn.0040d5f0
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x40a463
lea eax, [esp + 0x78]
push 3
mov dword [esp + 0x78], eax
push esi
lea eax, [esp + 0x7c]
call fcn.0040b0e0
lea ecx, [esp + 0x14]
mov byte [esp + 0x288], 0xf
push ecx
mov ecx, dword [esp + 0x78]
call fcn.00401bc0
mov byte [esp + 0x288], 0x11
mov eax, dword [esp + 0x74]
lea edx, [esp + 0x78]
cmp eax, edx
je 0x40a40a
push eax
call fcn.0048556b
add esp, 4
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.__pid:_d__get_installed_apps_id:_s
call fcn.0040bde0
add esp, 0xc
lea eax, [esp + 0x14]
lea edi, [esp + 0x1c]
call fcn.00402180
push esi
call fcn.0048556b
mov byte [esp + 0x28c], 0xe
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a461
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor edi, edi
push ebx
call fcn.0040d320
add esp, 4
mov byte [esp + 0x288], 5
mov eax, dword [esp + 0x3c]
cmp eax, edi
je 0x40a485
push eax
call fcn.00485321
add esp, 4
mov ecx, dword [esp + 0x30]
push ecx
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
call fcn.00485321
add esp, 4
jmp 0x40a6f3
lea edx, [esp + 0x14]
push edx
mov ecx, 0x4b2ac8
call fcn.00401bc0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x50]
push ecx
mov byte [esp + 0x290], 0x12
call fcn.00401830
mov esi, eax
lea eax, [esp + 0x14]
mov byte [esp + 0x288], 5
call fcn.0040ae60
cmp esi, edi
je 0x40a5e6
lea edx, [esp + 0x2c]
push edx
mov ecx, 0x4aad14
call fcn.00401bc0
lea eax, [esp + 0x14]
push eax
mov ecx, 0x4b2ad8
mov byte [esp + 0x28c], 0x13
call fcn.00401bc0
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x54]
push eax
lea edi, [esp + 0x24]
mov byte [esp + 0x294], 0x14
call fcn.00401a30
lea eax, [esp + 0x14]
call fcn.0040ae60
mov bl, 0x17
lea eax, [esp + 0x2c]
mov byte [esp + 0x288], bl
call fcn.0040ae60
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0
je 0x40a5c2
push 3
lea ecx, [esp + 0x7c]
push eax
lea eax, [esp + 0x7c]
mov dword [esp + 0x7c], ecx
call fcn.00409580
lea edx, [esp + 0x20]
mov byte [esp + 0x288], 0x18
mov ecx, dword [esp + 0x74]
push edx
call fcn.0040adc0
mov byte [esp + 0x288], 0x1a
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0x78]
cmp eax, ecx
je 0x40a596
push eax
call fcn.0048556b
add esp, 4
call fcn.0040af80
mov ecx, dword [esp + 0x20]
mov edx, eax
call fcn.00408c30
movzx esi, al
lea eax, [esp + 0x20]
mov byte [esp + 0x288], bl
call fcn.0040ae60
mov edx, 0x4b2ae0
test esi, esi
jne 0x40a5c7
mov edx, str.failed
lea edi, [esp + 0x1c]
call fcn.00401c70
lea eax, [esp + 0x18]
mov byte [esp + 0x288], 5
call fcn.0040ae60
jmp 0x40a6f3
lea edx, [esp + 0x18]
push edx
mov ecx, str.uninstall
call fcn.00401bc0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x50]
push ecx
mov byte [esp + 0x290], 0x1b
call fcn.00401830
mov esi, eax
lea eax, [esp + 0x18]
mov byte [esp + 0x288], 5
call fcn.0040ae60
cmp esi, edi
jne 0x40a6f3
lea edx, [esp + 0x18]
push edx
mov ecx, str.version
call fcn.00401bc0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x50]
push ecx
mov byte [esp + 0x290], 0x1c
call fcn.00401830
mov esi, eax
lea eax, [esp + 0x18]
mov byte [esp + 0x288], 5
call fcn.0040ae60
cmp esi, edi
jne 0x40a6f3
lea edx, [esp + 0x18]
push edx
mov ecx, str.help
call fcn.00401bc0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x50]
push ecx
mov byte [esp + 0x290], 0x1d
call fcn.00401830
mov esi, eax
lea eax, [esp + 0x18]
mov byte [esp + 0x288], 5
call fcn.0040ae60
cmp esi, edi
jne 0x40a6f3
lea edx, [esp + 0x18]
push edx
mov ecx, str.quit
call fcn.00401bc0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x50]
push ecx
mov byte [esp + 0x290], 0x1e
call fcn.00401830
mov esi, eax
lea eax, [esp + 0x18]
mov byte [esp + 0x288], 5
call fcn.0040ae60
cmp esi, edi
je 0x40a6f3
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push edi
push edi
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov esi, dword [esp + 0x1c]
push ecx
add esi, 0xfffffff0
mov eax, esi
mov dword [esp + 0x24], esp
mov edi, esp
call fcn.00402740
mov ecx, dword [ebp + 0xc]
add eax, 0x10
mov dword [edi], eax
mov edx, dword [ecx + 8]
mov eax, dword [ebp + 8]
push edx
push eax
call fcn.0040a7c0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x288], 4
call fcn.004013d0
mov byte [esp + 0x288], 3
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a74f
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov byte [esp + 0x288], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a777
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x288], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a7a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x280]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8