Function at 0x42bc40
Capabilities:
Create thread
Get common file path
Get startup folder
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a1bde
mov eax, dword fs:[0]
push eax
mov eax, 0x1c9c
call fcn.00497d20
mov eax, dword [0x4cc99c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.DOWNLOAD_THREAD_EVENT_2014_12_29
push 0
push 1
mov edi, ecx
push 0
mov dword [ebp - 0x1c90], edi
mov ebx, edx
mov dword [ebp - 0x1c98], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x4e9be4], eax
test eax, eax
je 0x42bcce
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x42bcce
lea eax, [ebp - 0x1c98]
push eax
push 0
push 0
push 0x40d940
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.MSVCR100.dll_wcsstr]
push 0x4b22b8
push ebx
call esi
add esp, 8
test eax, eax
je 0x42be14
push 0x4b22b8
push ebx
call esi
add esp, 8
test eax, eax
je 0x42c54f
xor ecx, ecx
mov word [ebp - 0x1bac], cx
mov ecx, eax
mov dword [ebp - 0x1b98], 7
mov dword [ebp - 0x1b9c], 0
lea edi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x42bd20
sub ecx, edi
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1bac]
call fcn.004027c0
push 0x4b4570
xor edi, edi
push ebx
mov dword [ebp - 4], edi
call esi
sub esp, 0x14
mov ecx, esp
add eax, 8
xor edx, edx
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], edi
mov word [ecx], dx
mov edx, eax
mov dword [ebp - 0x1c94], esp
lea esi, [edx + 2]
jmp 0x42bd70
mov bx, word [edx]
add edx, 2
cmp bx, di
jne 0x42bd70
sub edx, esi
sar edx, 1
push edx
push eax
call fcn.004027c0
lea eax, [ebp - 0x1bc8]
push eax
call fcn.00467c40
add esp, 0x20
push 1
push 0x4b0e3c
lea ecx, [ebp - 0x1bac]
mov byte [ebp - 4], 1
call fcn.004026a0
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x1bc8]
push ecx
lea ecx, [ebp - 0x1bac]
call fcn.00402d10
mov ecx, dword [ebp - 0x1c90]
push 0xffffffffffffffff
push edi
lea edx, [ebp - 0x1bac]
push edx
add ecx, 0x263c
call fcn.00402530
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov esi, 8
cmp dword [ebp - 0x1bb4], esi
jb 0x42bdfa
mov eax, dword [ebp - 0x1bc8]
push eax
call edi
add esp, 4
cmp dword [ebp - 0x1b98], esi
jb 0x42c54f
mov ecx, dword [ebp - 0x1bac]
push ecx
call edi
jmp 0x42c54c
push str._startrun
push ebx
call esi
add esp, 8
test eax, eax
je 0x42be2f
mov byte [edi + 0x2695], 1
jmp 0x42c54f
push str.hfgame:__
push ebx
call esi
add esp, 8
test eax, eax
je 0x42be7f
push str.hfgame:__
push ebx
call esi
add esp, 8
test eax, eax
je 0x42c54f
push ebx
lea ecx, [ebp - 0x1bac]
call fcn.00402480
lea ecx, [ebp - 0x1bac]
mov dword [ebp - 4], 2
call fcn.0042c580
lea ecx, [ebp - 0x1bac]
call fcn.004024d0
jmp 0x42c54f
push str._download
push ebx
call esi
add esp, 8
test eax, eax
je 0x42bee5
cmp dword [edi + 0x2690], 0
jne 0x42c54f
push 0xeaf8
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp - 0x1c94], eax
mov dword [ebp - 4], 3
test eax, eax
je 0x42bec2
push eax
call fcn.0044c430
jmp 0x42bec4
xor eax, eax
mov dword [ebp - 4], 0xffffffff
push eax
mov ecx, ebx
mov dword [edi + 0x2690], eax
call fcn.0044cdb0
mov byte [edi + 0x2694], 1
jmp 0x42c54f
push str._delete
push ebx
call esi
add esp, 8
test eax, eax
je 0x42bf8c
xor edx, edx
push 0x7e
push edx
lea eax, [ebp - 0x8e]
push eax
mov word [ebp - 0x90], dx
call sub.MSVCR100.dll_memset
push 0x4b1f24
push ebx
call esi
add esp, 0x14
test eax, eax
je 0x42bf60
lea ebx, [eax + 6]
push 0x4b2700
push ebx
call esi
add esp, 8
test eax, eax
je 0x42bf48
sub eax, ebx
sar eax, 1
push eax
push ebx
lea ecx, [ebp - 0x90]
push 0x40
push ecx
call dword [sym.imp.MSVCR100.dll_wcsncpy_s]
jmp 0x42bf5d
push ebx
push 0x4ab4fc
lea edx, [ebp - 0x90]
push 0x40
push edx
call dword [sym.imp.MSVCR100.dll_swprintf_s]
add esp, 0x10
push 0
mov esi, edi
call fcn.0042b860
lea eax, [ebp - 0x90]
push eax
call fcn.00478450
add esp, 4
lea edx, [ebp - 0x90]
mov ecx, edi
call fcn.0042ae70
xor al, al
jmp 0x42c551
push str._add
push ebx
call esi
add esp, 8
test eax, eax
je 0x42bfa9
mov edx, ebx
mov ecx, edi
call fcn.00437e10
jmp 0x42c551
push str._openurl
push ebx
call esi
add esp, 8
test eax, eax
je 0x42bfc9
push ebx
lea ecx, [edi + 0x263c]
call fcn.00403830
jmp 0x42c54f
push str._live
push ebx
call esi
add esp, 8
test eax, eax
je 0x42c52c
push str.liveurl:
push ebx
call esi
xor ecx, ecx
push 0xfe
push ecx
lea edx, [ebp - 0x18e]
push edx
mov edi, eax
mov word [ebp - 0x190], cx
call sub.MSVCR100.dll_memset
xor eax, eax
push 0xfe
push eax
lea ecx, [ebp - 0x38e]
push ecx
mov word [ebp - 0x390], ax
call sub.MSVCR100.dll_memset
xor edx, edx
push 0xfe
push edx
lea eax, [ebp - 0x28e]
push eax
mov word [ebp - 0x290], dx
call sub.MSVCR100.dll_memset
add esp, 0x2c
test edi, edi
je 0x42c06b
add edi, 0x10
push 0x4b2700
push edi
call esi
add esp, 8
test eax, eax
je 0x42c06b
sub eax, edi
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x190]
push 0x80
push ecx
call dword [sym.imp.MSVCR100.dll_wcsncpy_s]
add esp, 0x10
push str.liveid:
push ebx
call esi
add esp, 8
test eax, eax
je 0x42c0a7
lea edi, [eax + 0xe]
push 0x4b2700
push edi
call esi
add esp, 8
test eax, eax
je 0x42c0a7
sub eax, edi
sar eax, 1
push eax
push edi
lea edx, [ebp - 0x390]
push 0x80
push edx
call dword [sym.imp.MSVCR100.dll_wcsncpy_s]
add esp, 0x10
push str.livetype:
push ebx
call esi
add esp, 8
test eax, eax
je 0x42c0d1
add eax, 0x12
push 1
push eax
lea eax, [ebp - 0x290]
push 0x80
push eax
call dword [sym.imp.MSVCR100.dll_wcsncpy_s]
add esp, 0x10
mov esi, dword [ebp - 0x1c90]
lea ecx, [ebp - 0x190]
push ecx
lea ecx, [esi + 0x26cc]
call fcn.00403830
lea edx, [ebp - 0x290]
lea edi, [esi + 0x26b0]
push edx
mov ecx, edi
call fcn.00403830
lea eax, [ebp - 0x390]
lea ecx, [esi + 0x26e8]
push eax
mov dword [ebp - 0x1c94], ecx
call fcn.00403830
mov esi, 0x4b07fc
mov ecx, edi
call fcn.00408e30
test al, al
je 0x42c54f
lea ecx, [ebp - 0x1bac]
push ecx
call fcn.00461050
add esp, 4
mov dword [ebp - 4], 4
cmp dword [eax + 0x14], 0x10
jb 0x42c149
mov edi, dword [eax]
jmp 0x42c14b
mov edi, eax
test edi, edi
jne 0x42c153
xor eax, eax
jmp 0x42c17d
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [eax + 1]
cmp esi, 0x3fffffff
jle 0x42c169
xor eax, eax
jmp 0x42c17d
lea eax, [esi + esi]
call fcn.00497dd0
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.00403550
push eax
lea ecx, [ebp - 0x1bc8]
call fcn.00402480
lea ecx, [ebp - 0x1bac]
mov byte [ebp - 4], 6
call fcn.00403800
lea edx, [ebp - 0x1bc8]
push edx
lea ecx, [ebp - 0x1be4]
call fcn.004083d0
push str.gamedatalivegame_
lea ecx, [ebp - 0x1be4]
mov byte [ebp - 4], 7
call fcn.00402500
mov eax, dword [ebp - 0x1c94]
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x1be4]
call fcn.00402d10
push 0x4b463c
lea ecx, [ebp - 0x1be4]
call fcn.00402500
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [ebp - 0x1b8e]
push edx
mov word [ebp - 0x1b90], cx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0
push 0x10
lea eax, [ebp - 0x1b90]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x1b90]
push ecx
lea ecx, [ebp - 0x1c00]
call fcn.00402480
push 0x4ab248
lea ecx, [ebp - 0x1c54]
mov byte [ebp - 4], 8
call fcn.00402480
push str.SoftwareHuofengHuofengGameWorld
lea ecx, [ebp - 0x1c9c]
mov byte [ebp - 4], 9
call fcn.004022c0
push str.Live
lea ecx, [ebp - 0x1c9c]
mov byte [ebp - 4], 0xa
call fcn.004023c0
mov eax, dword [ebp - 0x1c9c]
lea edx, [ebp - 0x1c98]
push edx
push 0x20019
xor edi, edi
push edi
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [ebp - 0x138e]
push edx
mov dword [ebp - 0x1ca8], 1
mov word [ebp - 0x1390], cx
call sub.MSVCR100.dll_memset
mov esi, 0x800
xor eax, eax
mov dword [ebp - 0x1ca0], esi
mov word [ebp - 0xb90], ax
push 0x7fe
push eax
lea ecx, [ebp - 0xb8e]
push ecx
call sub.MSVCR100.dll_memset
add esp, 0x18
lea edx, [ebp - 0x1ca4]
push edx
lea eax, [ebp - 0xb90]
push eax
lea ecx, [ebp - 0x1ca8]
push ecx
mov ecx, dword [ebp - 0x1c98]
push edi
lea edx, [ebp - 0x1ca0]
push edx
lea eax, [ebp - 0x1390]
push eax
push edi
push ecx
mov dword [ebp - 0x1ca4], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x42c454
cmp eax, 0xea
je 0x42c454
mov ecx, dword [ebp - 0x1c90]
lea esi, [ebp - 0x1390]
add ecx, 0x26e8
call fcn.00408e30
test al, al
jne 0x42c394
push 0x400
mov edx, esi
push 0
push edx
inc edi
call sub.MSVCR100.dll_memset
add esp, 0xc
mov eax, 0x800
mov dword [ebp - 0x1ca0], eax
mov dword [ebp - 0x1ca4], eax
lea eax, [ebp - 0x1ca4]
push eax
lea ecx, [ebp - 0xb90]
push ecx
lea edx, [ebp - 0x1ca8]
push edx
mov edx, dword [ebp - 0x1c98]
push 0
lea eax, [ebp - 0x1ca0]
push eax
mov ecx, esi
push ecx
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x42c312
jmp 0x42c454
push 0x4adfcc
lea ecx, [ebp - 0x1c00]
call fcn.00402500
lea eax, [ebp - 0xb90]
push eax
lea ecx, [ebp - 0x1c00]
call fcn.00402500
push 0x4b08a8
lea ecx, [ebp - 0x1c00]
call fcn.00402500
push ebx
lea ecx, [ebp - 0x1c38]
call fcn.00402480
push 0x4adfcc
lea ecx, [ebp - 0x1bc8]
push ecx
lea edx, [ebp - 0x1c8c]
push edx
mov byte [ebp - 4], 0xb
call fcn.00408d40
push 0x4ad420
push eax
lea eax, [ebp - 0x1c70]
push eax
mov byte [ebp - 4], 0xc
call fcn.00408f20
push 0
lea ecx, [ebp - 0x1be4]
push ecx
lea edx, [ebp - 0x1c38]
push edx
lea ecx, [ebp - 0x1bc8]
push ecx
lea edx, [ebp - 0x1c00]
push edx
push eax
mov byte [ebp - 4], 0xd
call fcn.0045bf80
add esp, 0x30
lea ecx, [ebp - 0x1c70]
call fcn.004024d0
lea ecx, [ebp - 0x1c8c]
call fcn.004024d0
lea ecx, [ebp - 0x1c38]
mov byte [ebp - 4], 0xa
call fcn.004024d0
lea eax, [ebp - 0x1c1c]
push eax
call fcn.00461050
add esp, 4
push 4
push 0x4b4654
lea ecx, [ebp - 0x1c1c]
mov byte [ebp - 4], 0xe
call fcn.0043e020
cmp dword [ebp - 0x1c08], 0x10
jb 0x42c4a2
mov edi, dword [ebp - 0x1c1c]
test edi, edi
je 0x42c49e
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [eax + 1]
cmp esi, 0x3fffffff
jle 0x42c4aa
xor esi, esi
jmp 0x42c4c0
lea edi, [ebp - 0x1c1c]
jmp 0x42c48c
lea eax, [esi + esi]
call fcn.00497dd0
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.00403550
mov esi, eax
mov eax, dword [ebp - 0x1c90]
sub esp, 0x1c
add eax, 0x26e8
mov ecx, esp
mov dword [ebp - 0x1c94], esp
push eax
call fcn.004083d0
mov ecx, dword [ebp - 0x1c90]
push esi
call fcn.0043ca80
lea ecx, [ebp - 0x1c1c]
call fcn.00403800
lea ecx, [ebp - 0x1c9c]
call fcn.0045d6b0
lea ecx, [ebp - 0x1c54]
call fcn.004024d0
lea ecx, [ebp - 0x1c00]
call fcn.004024d0
lea ecx, [ebp - 0x1be4]
call fcn.004024d0
lea ecx, [ebp - 0x1bc8]
call fcn.004024d0
jmp 0x42c54f
push 0x4b1f24
push ebx
call esi
add esp, 8
test eax, eax
jne 0x42c542
push str.nogame
jmp 0x42c547
push str.game
call fcn.00479990
add esp, 4
mov al, 1
lea esp, [ebp - 0x1cb8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00497792
mov esp, ebp
pop ebp
ret