Function at 0x440230
Capabilities:
Accept command line arguments
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5f8
mov eax, dword [0x4e880c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
push 0xffffffffffffffff
call sub.IMM32.dll_ImmDisableIME
call fcn.00439560
xor esi, esi
mov eax, 7
push 0x206
mov dword [ebp - 0x4e4], eax
mov dword [ebp - 0x4ac], eax
lea eax, [ebp - 0x212]
push esi
push eax
mov dword [ebp - 0x4e8], esi
mov word [ebp - 0x4f8], si
mov dword [ebp - 0x4b0], esi
mov word [ebp - 0x4c0], si
mov word [ebp - 0x214], si
call fcn.0048c300
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x214]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4402c0
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x214]
push edx
lea ecx, [ebp - 0x4c4]
call fcn.0040244b
mov eax, dword [ebp - 0x4b0]
lea edi, [eax - 1]
cmp edi, eax
jbe 0x4402f4
call fcn.0048c687
cmp dword [ebp - 0x4ac], 8
mov eax, dword [ebp - 0x4c0]
jae 0x440309
lea eax, [ebp - 0x4c0]
cmp word [eax + edi*2], 0x5c
je 0x44036c
push 1
push 0x4caa50
lea ecx, [ebp - 0x4a8]
mov dword [ebp - 0x490], 7
mov dword [ebp - 0x494], esi
mov word [ebp - 0x4a4], si
call fcn.0040244b
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x4a8]
push eax
lea ecx, [ebp - 0x4c4]
call fcn.0040d400
mov edi, 8
cmp dword [ebp - 0x490], edi
jb 0x440371
mov ecx, dword [ebp - 0x4a4]
push ecx
call fcn.0048c049
add esp, 4
jmp 0x440371
mov edi, 8
push str.Kernel32.dll
lea edx, [ebp - 0x4c4]
push edx
lea eax, [ebp - 0x48c]
push eax
call fcn.0040dae0
add esp, 0xc
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp - 0x4fc]
call fcn.0040216a
cmp dword [ebp - 0x474], edi
jb 0x4403b2
mov ecx, dword [ebp - 0x488]
push ecx
call fcn.0048c049
add esp, 4
cmp dword [ebp - 0x4e4], edi
mov eax, dword [ebp - 0x4f8]
jae 0x4403c6
lea eax, [ebp - 0x4f8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, esi
je 0x4403f1
push str.SetDllDirectoryA
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x4403ea
push 0x4d39ce
call eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x206
lea edx, [ebp - 0x41a]
push esi
push edx
mov dword [ebp - 0x504], esi
mov byte [ebp - 0x50c], 0
mov dword [ebp - 0x508], esi
mov dword [ebp - 0x4c8], 7
mov dword [ebp - 0x4cc], esi
mov word [ebp - 0x4dc], si
mov word [ebp - 0x41c], si
call fcn.0048c300
add esp, 0xc
push 0x208
lea eax, [ebp - 0x41c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebx
lea ecx, [ebp - 0x41c]
push ecx
push str.TencentDL_tMain__filename:_s__cmd:_s
push 0x4cd130
push 3
push str.wWinMain
push 0x207
push str..DownloadProxy.cpp
call fcn.004245c0
mov edx, dword [0x4cd308]
mov ax, word [0x4cd30c]
lea ecx, [ebp - 0xc]
push ecx
push ebx
mov dword [ebp - 0xc], edx
mov word [ebp - 8], ax
call fcn.00439170
add esp, 0x28
cmp eax, esi
mov dword [ebp - 0x510], eax
je 0x440906
mov esi, eax
push str.RegServer
push esi
call fcn.004391c0
add esp, 8
test eax, eax
jne 0x4404c3
mov dword [ebp - 0x504], 1
jmp 0x440906
push str.UnregServer
push esi
call fcn.004391c0
add esp, 8
test eax, eax
jne 0x4404e4
mov dword [ebp - 0x504], 2
jmp 0x440906
push str.Embedding
push esi
call fcn.004391c0
add esp, 8
test eax, eax
jne 0x440505
mov dword [ebp - 0x504], 3
jmp 0x440906
push str.Install
push esi
call fcn.004391c0
add esp, 8
test eax, eax
jne 0x440906
lea edx, [ebp - 0x500]
push edx
push ebx
mov dword [ebp - 0x504], 4
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test eax, eax
mov dword [ebp - 0x518], eax
je 0x4406da
xor ebx, ebx
cmp dword [ebp - 0x500], ebx
jle 0x4406da
nop
mov eax, dword [ebp - 0x518]
mov ecx, dword [eax + ebx*4]
push ecx
lea ecx, [ebp - 0x438]
call fcn.004042bd
lea edx, [ebp - 0x53c]
push edx
lea ecx, [ebp - 0x438]
call fcn.0043a970
mov esi, eax
lea eax, [ebp - 0x534]
push eax
lea ecx, [ebp - 0x438]
call fcn.004273c0
lea ecx, [ebp - 0x524]
push ecx
lea ecx, [ebp - 0x438]
mov edi, eax
call fcn.0043a970
mov edx, dword [esi + 4]
mov ecx, dword [esi]
push fcn.0048e64e
push edx
mov edx, dword [edi + 4]
push ecx
mov ecx, dword [edi]
push edx
mov edx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push edx
push eax
lea ecx, [ebp - 0x52c]
push ecx
call fcn.0043ac00
add esp, 0x20
push str.pid
lea ecx, [ebp - 0x4a8]
call fcn.004042bd
push str.dir
lea ecx, [ebp - 0x48c]
call fcn.004042bd
push 0
lea edx, [ebp - 0x4a8]
push edx
lea ecx, [ebp - 0x438]
call fcn.00426380
cmp eax, 0xffffffff
je 0x440653
mov ecx, dword [ebp - 0x494]
push 0xffffffffffffffff
add ecx, eax
push ecx
lea edx, [ebp - 0x454]
push edx
lea ecx, [ebp - 0x438]
call fcn.00428a70
push 1
push 1
lea eax, [ebp - 0x454]
push eax
lea ecx, [ebp - 0x5f8]
call fcn.0043e150
lea ecx, [ebp - 0x508]
push ecx
lea ecx, [ebp - 0x5f8]
call fcn.0043def0
lea ecx, [ebp - 0x5f8]
call fcn.0043a350
jmp 0x44069f
push 0
lea edx, [ebp - 0x48c]
push edx
lea ecx, [ebp - 0x438]
call fcn.00426380
cmp eax, 0xffffffff
je 0x4406aa
mov ecx, dword [ebp - 0x478]
push 0xffffffffffffffff
add ecx, eax
push ecx
lea edx, [ebp - 0x454]
push edx
lea ecx, [ebp - 0x438]
call fcn.00428a70
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x454]
push eax
lea ecx, [ebp - 0x4e0]
call fcn.0040216a
lea ecx, [ebp - 0x454]
call fcn.00402039
lea ecx, [ebp - 0x48c]
call fcn.00402039
lea ecx, [ebp - 0x4a8]
call fcn.00402039
lea ecx, [ebp - 0x438]
call fcn.00402039
add ebx, 1
cmp ebx, dword [ebp - 0x500]
jl 0x440550
cmp dword [ebp - 0x508], 0
jne 0x440906
mov ecx, dword [ebp - 0x510]
push ecx
lea ecx, [ebp - 0x454]
call fcn.004042bd
push 0x4d39d0
lea ecx, [ebp - 0x438]
call fcn.004042bd
lea edx, [ebp - 0x52c]
push edx
lea ecx, [ebp - 0x454]
call fcn.0043a970
mov esi, eax
lea eax, [ebp - 0x524]
push eax
lea ecx, [ebp - 0x454]
call fcn.004273c0
lea ecx, [ebp - 0x534]
push ecx
lea ecx, [ebp - 0x454]
mov edi, eax
call fcn.0043a970
mov edx, dword [esi + 4]
mov ecx, dword [esi]
push fcn.0048e64e
push edx
mov edx, dword [edi + 4]
push ecx
mov ecx, dword [edi]
push edx
mov edx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push edx
push eax
lea ecx, [ebp - 0x53c]
push ecx
call fcn.0043ac00
add esp, 0x20
push 0
push 0x4cd554
lea ecx, [ebp - 0x454]
call fcn.0043a430
cmp eax, 0xffffffff
je 0x4408f0
mov edx, dword [ebp - 0x440]
push edx
push 0
push 0x4cd54c
lea ecx, [ebp - 0x454]
call fcn.0043a430
push eax
lea eax, [ebp - 0x48c]
push eax
lea ecx, [ebp - 0x454]
call fcn.00428a70
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x438]
call fcn.0040216a
lea ecx, [ebp - 0x48c]
call fcn.00402039
push 0
push 0x4d3ecc
lea ecx, [ebp - 0x438]
call fcn.0043a460
cmp eax, 0xffffffff
je 0x440827
push 0
push 0x4d3ecc
lea ecx, [ebp - 0x438]
call fcn.0043a460
push eax
push 0
lea ecx, [ebp - 0x48c]
push ecx
lea ecx, [ebp - 0x438]
call fcn.00428a70
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x438]
call fcn.0040216a
lea ecx, [ebp - 0x48c]
call fcn.00402039
cmp dword [ebp - 0x424], 0
je 0x4408f0
push 0x4d39ce
lea ecx, [ebp - 0x470]
mov byte [ebp - 0x50c], 1
call fcn.004040f9
lea edx, [ebp - 0x470]
push edx
lea eax, [ebp - 0x438]
push eax
call fcn.00454ed0
add esp, 8
push 3
push 0
lea ecx, [ebp - 0x470]
call fcn.0040230d
push 0
push 0x4cd548
lea ecx, [ebp - 0x470]
call fcn.0043a370
cmp eax, 0xffffffff
je 0x4408ae
push 1
push eax
lea ecx, [ebp - 0x470]
call fcn.0040230d
push 1
push 0
push 0x4cd548
lea ecx, [ebp - 0x470]
call fcn.00439bd0
cmp eax, 0xffffffff
jne 0x440887
lea ecx, [ebp - 0x470]
push ecx
call fcn.00444e20
add esp, 4
test al, al
je 0x4408e5
cmp dword [ebp - 0x458], 0x10
mov eax, dword [ebp - 0x46c]
jae 0x4408d6
lea eax, [ebp - 0x46c]
push eax
call fcn.0048c90c
add esp, 4
mov dword [ebp - 0x508], eax
lea ecx, [ebp - 0x470]
call fcn.00401f9e
lea ecx, [ebp - 0x438]
call fcn.00402039
lea ecx, [ebp - 0x454]
call fcn.00402039
mov esi, dword [ebp - 0x504]
xor ebx, ebx
lea eax, [esi - 1]
cmp eax, 3
mov dword [ebp - 0x500], ebx
ja case.default.0x440920
jmp dword [eax*4 + 0x440d34]
mov edx, dword [ebp + 0x14]
push edx
mov ecx, 0x4eaea0
call fcn.0043b110
mov dword [ebp - 0x500], eax
lea eax, [ebp - 0x438]
push ebx
push eax
call fcn.00446310
lea ecx, [ebp - 0x4a8]
push ebx
push ecx
call fcn.004463c0
push str.DownloadProxyPS.dll
lea edx, [ebp - 0x4a8]
push edx
lea eax, [ebp - 0x454]
push eax
call fcn.0040dae0
push str._bugreport_xf.exe
lea ecx, [ebp - 0x4a8]
push ecx
lea edx, [ebp - 0x470]
push edx
call fcn.0040dae0
add esp, 0x28
cmp dword [ebp - 0x424], ebx
mov edi, 8
je 0x440b36
cmp esi, 1
mov eax, dword [ebp - 0x434]
jne 0x440a8e
cmp dword [ebp - 0x420], edi
jae 0x4409b6
lea eax, [ebp - 0x434]
push 0x4cd3e0
push eax
call fcn.004420a0
mov eax, dword [ebp - 0x46c]
add esp, 8
cmp dword [ebp - 0x458], edi
jae 0x4409d8
lea eax, [ebp - 0x46c]
push 0x4cd4d8
push eax
call fcn.004420a0
add esp, 8
push 0x4cd310
lea eax, [ebp - 0x454]
push eax
lea ecx, [ebp - 0x574]
push str._s__
push ecx
call fcn.004112f0
add esp, 0xc
push eax
lea edx, [ebp - 0x48c]
push edx
call fcn.0040dae0
add esp, 0xc
lea ecx, [ebp - 0x574]
call fcn.00402039
cmp dword [ebp - 0x474], edi
mov eax, dword [ebp - 0x488]
jae 0x440a35
lea eax, [ebp - 0x488]
push ebx
push ebx
push eax
push str.regsvr32.exe
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x2b4
call fcn.0048c04e
add esp, 4
cmp eax, ebx
je 0x440b2b
mov ecx, eax
call fcn.00465760
mov esi, eax
cmp esi, ebx
je 0x440b2b
mov ecx, esi
call fcn.00469390
mov ecx, esi
call fcn.00469e30
mov ecx, esi
call fcn.00463e10
push esi
call fcn.0048c049
add esp, 4
jmp 0x440b2b
cmp dword [ebp - 0x420], edi
jae 0x440a9c
lea eax, [ebp - 0x434]
push 0x4cd3e0
push eax
call fcn.00442300
mov eax, dword [ebp - 0x46c]
add esp, 8
cmp dword [ebp - 0x458], edi
jae 0x440abe
lea eax, [ebp - 0x46c]
push 0x4cd4d8
push eax
call fcn.00442300
add esp, 8
push 0x4cd310
lea eax, [ebp - 0x454]
push eax
lea ecx, [ebp - 0x558]
push str._u__s__
push ecx
call fcn.004112f0
add esp, 0xc
push eax
lea edx, [ebp - 0x48c]
push edx
call fcn.0040dae0
add esp, 0xc
lea ecx, [ebp - 0x558]
call fcn.00402039
cmp dword [ebp - 0x474], edi
mov eax, dword [ebp - 0x488]
jae 0x440b1b
lea eax, [ebp - 0x488]
push ebx
push ebx
push eax
push str.regsvr32.exe
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x48c]
call fcn.00402039
cmp dword [ebp - 0x458], edi
jb 0x440b4d
mov eax, dword [ebp - 0x46c]
push eax
call fcn.0048c049
add esp, 4
cmp dword [ebp - 0x43c], edi
mov esi, 7
mov dword [ebp - 0x458], esi
mov dword [ebp - 0x45c], ebx
mov word [ebp - 0x46c], bx
jb 0x440b7c
mov ecx, dword [ebp - 0x450]
push ecx
call fcn.0048c049
add esp, 4
cmp dword [ebp - 0x490], edi
mov dword [ebp - 0x43c], esi
mov dword [ebp - 0x440], ebx
mov word [ebp - 0x450], bx
jb 0x440ba6
mov edx, dword [ebp - 0x4a4]
push edx
call fcn.0048c049
add esp, 4
cmp dword [ebp - 0x420], edi
mov dword [ebp - 0x490], esi
mov dword [ebp - 0x494], ebx
mov word [ebp - 0x4a4], bx
jb 0x440ca9
mov eax, dword [ebp - 0x434]
push eax
call fcn.0048c049
add esp, 4
jmp 0x440ca9
lea ecx, [ebp - 0x51c]
push ecx
call fcn.00438a40
mov ecx, dword [eax]
add esp, 4
call fcn.00438b50
lea ecx, [ebp - 0x51c]
call fcn.00424a10
mov edx, dword [ebp + 0x14]
push edx
mov ecx, 0x4eaea0
call fcn.0043b110
mov dword [ebp - 0x500], eax
lea eax, [ebp - 0x514]
push eax
call fcn.00438a40
mov ecx, dword [eax]
add esp, 4
call fcn.00435cb0
lea ecx, [ebp - 0x514]
call fcn.00424a10
call fcn.00430600
jmp case.default.0x440920
push 0x2b4
call fcn.0048c04e
add esp, 4
cmp eax, ebx
je 0x440d2d
mov ecx, eax
call fcn.00465760
mov esi, eax
cmp esi, ebx
je 0x440c7b
mov ecx, esi
call fcn.00465bf0
mov ecx, esi
call fcn.00466670
mov ecx, dword [ebp - 0x50c]
mov edx, dword [ebp - 0x508]
push ecx
push edx
mov ecx, esi
call fcn.004643a0
lea eax, [ebp - 0x4e0]
push eax
push esi
call fcn.0043f940
add esp, 8
cmp esi, ebx
je case.default.0x440920
mov ecx, esi
call fcn.00463e10
push esi
call fcn.0048c049
add esp, 4
mov esi, 7
mov edi, 8
cmp dword [ebp - 0x4c8], edi
jb 0x440cc0
mov ecx, dword [ebp - 0x4dc]
push ecx
call fcn.0048c049
add esp, 4
cmp dword [ebp - 0x4ac], edi
mov dword [ebp - 0x4c8], esi
mov dword [ebp - 0x4cc], ebx
mov word [ebp - 0x4dc], bx
jb 0x440cea
mov edx, dword [ebp - 0x4c0]
push edx
call fcn.0048c049
add esp, 4
cmp dword [ebp - 0x4e4], edi
pop edi
mov dword [ebp - 0x4ac], esi
pop esi
mov dword [ebp - 0x4b0], ebx
mov word [ebp - 0x4c0], bx
pop ebx
jb 0x440d17
mov eax, dword [ebp - 0x4f8]
push eax
call fcn.0048c049
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x500]
xor ecx, ebp
call fcn.0048c010
mov esp, ebp
pop ebp
ret 0x10
xor esi, esi
jmp 0x440c7b