Function at 0x4e40bc
Capabilities:
Accept command line arguments
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58e52c
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x4ff4
call fcn.004fc580
mov eax, dword [0x602c60]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
inc ebx
or esi, 0xffffffff
mov dword [ebp - 0x4fd4], esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 0x4fd4]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
cmp dword [ebp - 0x4fd4], ebx
jle 0x4e4b85
xor ebx, ebx
mov dword [ebp - 0x4fbc], ebx
push 1
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x4fb8], esp
push str._backuppdb
call fcn.0049b524
mov dword [ebp - 4], ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x4fc4], esp
push dword [edi + 4]
call fcn.0049b524
mov byte [ebp - 4], 1
mov dword [ebp - 4], esi
call fcn.004bb43f
add esp, 0x3c
cmp eax, ebx
je 0x4e4573
lea ecx, [ebp - 0x5004]
call fcn.00432a3a
push 3
pop edi
mov dword [ebp - 4], edi
push ecx
mov ecx, esp
mov dword [ebp - 0x4fb8], esp
mov esi, str.Hao123Downloader.exe
push esi
call fcn.0043479c
mov byte [ebp - 4], 4
push ecx
mov eax, esp
mov dword [ebp - 0x4fc4], esp
push eax
lea ecx, [ebp - 0x5004]
call fcn.004bb121
mov byte [ebp - 4], 5
lea eax, [ebp - 0x4fcc]
push eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x5004]
call fcn.0049be74
mov byte [ebp - 4], 6
push ecx
mov ecx, esp
mov dword [ebp - 0x4fb8], esp
push str.Hao123Downloader.pdb
call fcn.0043479c
mov byte [ebp - 4], 7
push ecx
mov eax, esp
mov dword [ebp - 0x4fc4], esp
push eax
lea ecx, [ebp - 0x5004]
call fcn.004bb121
mov byte [ebp - 4], 8
lea eax, [ebp - 0x4fbc]
push eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x5004]
call fcn.0049be74
mov byte [ebp - 4], 9
push ebx
push 0x20
push edi
push ebx
push ebx
push SysReAllocString
push dword [ebp - 0x4fcc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x4fc8], eax
cmp eax, 0xffffffff
je 0x4e453b
mov dword [ebp - 0x4fec], ebx
xor eax, eax
lea edi, [ebp - 0x4fe8]
stosd dword es:[edi], eax
lea eax, [ebp - 0x4fec]
push eax
push ebx
push ebx
push dword [ebp - 0x4fc8]
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push dword [ebp - 0x4fc8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or edi, 0xffffffff
push edi
lea eax, [ebp - 0x4fec]
push eax
lea ecx, [ebp - 0x4fe4]
call fcn.004a0055
push 0x602968
lea ecx, [ebp - 0x4fc8]
call fcn.00431ef7
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x2880]
push eax
lea ecx, [ebp - 0x4fe4]
call fcn.004a0101
cmp eax, ebx
je 0x4e42b2
mov eax, dword [eax]
mov dword [ebp - 0x4fdc], eax
jmp 0x4e42b8
mov dword [ebp - 0x4fdc], edi
lea eax, [ebp - 0x2838]
push eax
lea ecx, [ebp - 0x4fe4]
call fcn.004a0101
cmp eax, ebx
je 0x4e42d9
mov eax, dword [eax + 4]
mov dword [ebp - 0x4fd0], eax
jmp 0x4e42df
mov dword [ebp - 0x4fd0], edi
lea eax, [ebp - 0x28c8]
push eax
lea ecx, [ebp - 0x4fe4]
call fcn.004a0101
cmp eax, ebx
je 0x4e4300
mov eax, dword [eax + 8]
mov dword [ebp - 0x4fc4], eax
jmp 0x4e4306
mov dword [ebp - 0x4fc4], edi
lea eax, [ebp - 0x285c]
push eax
lea ecx, [ebp - 0x4fe4]
call fcn.004a0101
cmp eax, ebx
je 0x4e4321
mov edi, dword [eax + 0xc]
jmp 0x4e4323
xor edi, edi
lea eax, [ebp - 0x28a4]
push eax
lea ecx, [ebp - 0x4fe4]
call fcn.004a0101
cmp eax, ebx
je 0x4e433f
mov eax, dword [eax + 0x10]
inc eax
jmp 0x4e4341
xor eax, eax
push dword [ebp - 0x4fdc]
push dword [ebp - 0x4fd0]
push dword [ebp - 0x4fc4]
push edi
push eax
lea ecx, [ebp - 0x4fe4]
call fcn.004a0156
push eax
push str._04d__02d__02d__02d_02d_02d
lea eax, [ebp - 0x4fc8]
push eax
call fcn.00433c96
lea eax, [ebp - 0x4fb8]
push eax
xor ecx, ecx
call fcn.004b1e5e
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x4fb8]
push eax
push str.pdbbackupHao123Downloader_
lea eax, [ebp - 0x4fd0]
push eax
call fcn.004b01ac
mov byte [ebp - 4], 0xd
push 0x59a764
push eax
lea eax, [ebp - 0x4fc4]
push eax
call fcn.0043a8de
mov byte [ebp - 4], 0xe
add esp, 0x38
mov ecx, esp
mov dword [ebp - 0x4fdc], esp
lea edx, [ebp - 0x4fc8]
push edx
push eax
push ecx
call fcn.0043a887
mov byte [ebp - 4], 0xf
add esp, 8
mov eax, esp
mov dword [ebp - 0x4fc0], esp
push eax
lea ecx, [ebp - 0x5004]
call fcn.004bb121
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0x4fd8]
push eax
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x5004]
call fcn.0049be74
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x4fc4]
add ecx, 0xfffffff0
call fcn.004310e3
mov byte [ebp - 4], 0x14
mov ecx, dword [ebp - 0x4fd0]
add ecx, 0xfffffff0
call fcn.004310e3
lea eax, [ebp - 0x4fd8]
push eax
call fcn.004b2000
pop ecx
push ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x4fc0], esp
push esi
call fcn.0043479c
mov byte [ebp - 4], 0x16
push ecx
mov ecx, esp
mov dword [ebp - 0x4fd0], esp
lea eax, [ebp - 0x4fd8]
push eax
call fcn.004324a9
mov byte [ebp - 4], 0x17
lea eax, [ebp - 0x4fc4]
push eax
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x5004]
call fcn.0049be74
mov byte [ebp - 4], 0x18
push dword [eax]
push dword [ebp - 0x4fcc]
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileW]
call esi
mov byte [ebp - 4], 0x14
mov ecx, dword [ebp - 0x4fc4]
add ecx, 0xfffffff0
call fcn.004310e3
push ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x4fc0], esp
push str.Hao123Downloader.pdb
call fcn.0043479c
mov byte [ebp - 4], 0x1a
push ecx
mov ecx, esp
mov dword [ebp - 0x4fd0], esp
lea eax, [ebp - 0x4fd8]
push eax
call fcn.004324a9
mov byte [ebp - 4], 0x1b
lea eax, [ebp - 0x4fc4]
push eax
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x5004]
call fcn.0049be74
mov byte [ebp - 4], 0x1c
push dword [eax]
push dword [ebp - 0x4fbc]
call esi
mov byte [ebp - 4], 0x14
mov ecx, dword [ebp - 0x4fc4]
add ecx, 0xfffffff0
call fcn.004310e3
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x4fd8]
add ecx, 0xfffffff0
call fcn.004310e3
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x4fb8]
add ecx, 0xfffffff0
call fcn.004310e3
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x4fc8]
add ecx, 0xfffffff0
call fcn.004310e3
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x4fbc]
add ecx, 0xfffffff0
call fcn.004310e3
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x4fcc]
add ecx, 0xfffffff0
call fcn.004310e3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5004]
call fcn.00432a92
jmp 0x4e4b85
push 1
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x4fc0], esp
push str._postdata
call fcn.0049b524
mov dword [ebp - 4], 0x24
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x4fb8], esp
push dword [edi + 4]
call fcn.0049b524
mov byte [ebp - 4], 0x25
mov dword [ebp - 4], esi
call fcn.004bb43f
add esp, 0x3c
cmp eax, ebx
je 0x4e45ea
call fcn.004c6faa
push str.hao123downloader_post_data_finish
push ebx
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov esi, eax
cmp esi, ebx
je 0x4e4b85
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4e4b85
push 1
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x4fc0], esp
push str._ccdata
call fcn.0049b524
mov dword [ebp - 4], 0x26
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x4fb8], esp
push dword [edi + 4]
call fcn.0049b524
mov byte [ebp - 4], 0x27
mov dword [ebp - 4], esi
call fcn.004bb43f
add esp, 0x3c
cmp eax, ebx
je 0x4e4668
push ecx
mov ecx, esp
mov dword [ebp - 0x4fc0], esp
push 0x59a2c0
call fcn.0043479c
mov dword [ebp - 4], 0x28
mov ecx, dword [0x606438]
mov dword [ebp - 4], esi
call fcn.004de2de
cmp eax, ebx
je 0x4e4b85
call fcn.004e3a04
jmp 0x4e4b85
push 1
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x4fc0], esp
push str._lowprocess
call fcn.0049b524
mov dword [ebp - 4], 0x29
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x4fb8], esp
push dword [edi + 4]
call fcn.0049b524
mov byte [ebp - 4], 0x2a
mov dword [ebp - 4], esi
call fcn.004bb43f
add esp, 0x3c
cmp eax, ebx
je 0x4e4763
push dword [edi + 8]
lea ecx, [ebp - 0x4fc8]
call fcn.0043479c
mov dword [ebp - 4], 0x2b
push dword [edi + 0xc]
lea ecx, [ebp - 0x4fcc]
call fcn.0043479c
mov byte [ebp - 4], 0x2c
mov edi, 0x59a2c0
push edi
push str.lname
lea ecx, [ebp - 0x4fc8]
call fcn.004337ea
push edi
push str.fname
lea ecx, [ebp - 0x4fcc]
call fcn.004337ea
push ecx
mov ecx, esp
mov dword [ebp - 0x4fc0], esp
lea eax, [ebp - 0x4fcc]
push eax
call fcn.004324a9
mov byte [ebp - 4], 0x2d
push ecx
mov ecx, esp
mov dword [ebp - 0x4fbc], esp
lea eax, [ebp - 0x4fc8]
push eax
call fcn.004324a9
mov byte [ebp - 4], 0x2e
mov byte [ebp - 4], 0x2c
call fcn.004df1ef
pop ecx
pop ecx
mov byte [ebp - 4], 0x2b
mov ecx, dword [ebp - 0x4fcc]
add ecx, 0xfffffff0
call fcn.004310e3
mov dword [ebp - 4], esi
mov ecx, dword [ebp - 0x4fc8]
add ecx, 0xfffffff0
call fcn.004310e3
jmp 0x4e4b85
push 1
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x4fc0], esp
push str._smp
call fcn.0049b524
mov dword [ebp - 4], 0x31
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x4fb8], esp
push dword [edi + 4]
call fcn.0049b524
mov byte [ebp - 4], 0x32
mov dword [ebp - 4], esi
call fcn.004bb43f
add esp, 0x3c
cmp eax, ebx
je 0x4e4981
cmp dword [ebp - 0x4fd4], 2
jle 0x4e4971
push dword [edi + 8]
lea ecx, [ebp - 0x4fb8]
call fcn.0043479c
mov dword [ebp - 4], 0x33
mov byte [ebp - 0x814], bl
push 0x7ff
push ebx
lea eax, [ebp - 0x813]
push eax
call fcn.004fc1f0
add esp, 0xc
push dword [ebp - 0x4fb8]
lea ecx, [ebp - 0x4fbc]
call fcn.004b40f5
mov byte [ebp - 4], 0x34
mov ecx, eax
call fcn.004a6aeb
push eax
mov esi, 0x800
push esi
lea eax, [ebp - 0x814]
push eax
call fcn.005043a1
add esp, 0xc
mov byte [ebp - 4], 0x33
mov ecx, dword [ebp - 0x4fbc]
add ecx, 0xfffffff0
call fcn.004310e3
mov byte [ebp - 0x2814], bl
mov edi, 0xfff
push edi
push ebx
lea eax, [ebp - 0x2813]
push eax
call fcn.004fc1f0
mov byte [ebp - 0x1814], bl
push edi
push ebx
lea eax, [ebp - 0x1813]
push eax
call fcn.004fc1f0
lea eax, [ebp - 0x814]
push eax
call fcn.004fba80
add esp, 0x1c
mov edi, eax
push ebx
push str._hd1qa_
lea ecx, [ebp - 0x4fb4]
call fcn.004a3f83
mov eax, edi
shl eax, 2
push eax
lea eax, [ebp - 0x2814]
push eax
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0x4fb4]
call fcn.004a074b
mov eax, edi
shl eax, 3
push eax
lea eax, [ebp - 0x2814]
push eax
lea eax, [ebp - 0x1814]
push eax
lea ecx, [ebp - 0x4fb4]
call fcn.004a067d
sar edi, 1
push ebx
push edi
lea eax, [ebp - 0x1814]
push eax
lea ecx, [ebp - 0x4fb4]
call fcn.004a7ff1
push edi
lea eax, [ebp - 0x38c9]
push eax
push esi
lea eax, [ebp - 0x814]
push eax
call fcn.004fa3ab
add esp, 0x10
mov byte [ebp - 4], 0x36
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0x4fbc]
call fcn.00433e48
mov byte [ebp - 4], 0x37
push ecx
mov ecx, esp
mov dword [ebp - 0x4fc0], esp
lea eax, [ebp - 0x4fbc]
push eax
call fcn.004324a9
mov byte [ebp - 4], 0x38
mov byte [ebp - 4], 0x37
call fcn.0043e5bc
pop ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov byte [ebp - 4], 0x39
mov byte [ebp - 4], 0x36
mov ecx, dword [ebp - 0x4fbc]
add ecx, 0xfffffff0
call fcn.004310e3
mov dword [ebp - 4], 0x33
jmp 0x4e495f
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x4fb8]
add ecx, 0xfffffff0
call fcn.004310e3
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4e4b85
push 1
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x4fc0], esp
push str._sse
call fcn.0049b524
mov dword [ebp - 4], 0x3c
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x4fb8], esp
push dword [edi + 4]
call fcn.0049b524
mov byte [ebp - 4], 0x3d
mov dword [ebp - 4], esi
call fcn.004bb43f
add esp, 0x3c
cmp eax, ebx
je 0x4e4b7f
cmp dword [ebp - 0x4fd4], 2
jle 0x4e4971
push dword [edi + 8]
lea ecx, [ebp - 0x4fb8]
call fcn.0043479c
mov dword [ebp - 4], 0x3e
mov byte [ebp - 0x814], bl
push 0x7ff
push ebx
lea eax, [ebp - 0x813]
push eax
call fcn.004fc1f0
add esp, 0xc
push dword [ebp - 0x4fb8]
lea ecx, [ebp - 0x4fbc]
call fcn.004b40f5
mov byte [ebp - 4], 0x3f
mov ecx, eax
call fcn.004a6aeb
push eax
mov esi, 0x800
push esi
lea eax, [ebp - 0x814]
push eax
call fcn.005043a1
add esp, 0xc
mov byte [ebp - 4], 0x3e
mov ecx, dword [ebp - 0x4fbc]
add ecx, 0xfffffff0
call fcn.004310e3
mov byte [ebp - 0x1814], bl
mov edi, 0xfff
push edi
push ebx
lea eax, [ebp - 0x1813]
push eax
call fcn.004fc1f0
mov byte [ebp - 0x2814], bl
push edi
push ebx
lea eax, [ebp - 0x2813]
push eax
call fcn.004fc1f0
lea eax, [ebp - 0x814]
push eax
call fcn.004fba80
add esp, 0x1c
mov edi, eax
push ebx
push str._hd1qa_
lea ecx, [ebp - 0x4fb4]
call fcn.004a3f83
mov eax, edi
shl eax, 2
push eax
lea eax, [ebp - 0x1814]
push eax
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0x4fb4]
call fcn.004a074b
mov eax, edi
shl eax, 3
push eax
lea eax, [ebp - 0x1814]
push eax
lea eax, [ebp - 0x2814]
push eax
lea ecx, [ebp - 0x4fb4]
call fcn.004a067d
sar edi, 1
push ebx
push edi
lea eax, [ebp - 0x2814]
push eax
lea ecx, [ebp - 0x4fb4]
call fcn.004a7ff1
push edi
lea eax, [ebp - 0x38c9]
push eax
push esi
lea eax, [ebp - 0x814]
push eax
call fcn.004fa3ab
add esp, 0x10
mov byte [ebp - 4], 0x41
push ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0x4fbc]
call fcn.00433e48
mov byte [ebp - 4], 0x42
push ecx
mov ecx, esp
mov dword [ebp - 0x4fc0], esp
lea eax, [ebp - 0x4fbc]
push eax
call fcn.004324a9
mov byte [ebp - 4], 0x43
mov byte [ebp - 4], 0x42
call fcn.0043f215
pop ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov byte [ebp - 4], 0x44
mov byte [ebp - 4], 0x41
mov ecx, dword [ebp - 0x4fbc]
add ecx, 0xfffffff0
call fcn.004310e3
mov dword [ebp - 4], 0x3e
jmp 0x4e4b7a
jmp 0x4e495f
mov ebx, dword [ebp - 0x4fbc]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004fb958
leave
ret