Function at 0x499cf0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x67572b
mov eax, dword fs:[0]
push eax
sub esp, 0x104
mov eax, dword [0x74b738]
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
mov ebx, ecx
call fcn.00509500
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x499e53
push 0x2c
push str.f:master_luinst_ui_marketprogresspage.cpp
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], al
call fcn.0042a9a0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x48]
push 3
push 0x6d1880
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
call fcn.0042a9a0
mov byte [ebp - 4], 1
call fcn.00509500
mov edi, eax
lea ecx, [ebp - 0x110]
push 0x1de
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.0042c590
mov esi, eax
push str.do_sth_on_downloading_succ
push esi
mov byte [ebp - 4], 2
call fcn.0042c400
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x110]
call fcn.00428ee0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x34]
cmp edx, 0x10
jb 0x499e04
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x499dfa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x499dfa
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00669e69
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
cmp edx, 0x10
jb 0x499e53
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x499e49
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x499e49
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00669e69
add esp, 8
mov ecx, ebx
call fcn.00498a90
push 0
cmp eax, 1
jne 0x499eb3
mov ecx, dword [ebx + 0xf4]
lea edx, [ebp - 0x30]
xor eax, eax
mov dword [ebp - 0x30], 0x88c55b89
push eax
push eax
mov dword [ebp - 0x2c], 0x4e0b5305
mov dword [ebp - 0x28], 0x59318f7d
mov dword [ebp - 0x24], 0x2c8d25
mov dword [ebp - 0x20], 0x8bf70020
mov dword [ebp - 0x1c], 0x540e7a0d
mov dword [ebp - 0x18], 0x8bd591cd
mov word [ebp - 0x14], ax
call fcn.0044fd40
push 0
mov ecx, ebx
call fcn.0049b0b0
jmp 0x499f03
cmp eax, 2
jl 0x49a073
mov ecx, dword [ebx + 0xf4]
lea edx, [ebp - 0x30]
xor eax, eax
mov dword [ebp - 0x30], 0x88c55b89
push eax
push eax
mov dword [ebp - 0x2c], 0x5e8f7a0b
mov dword [ebp - 0x28], 0x783488ab
mov dword [ebp - 0x24], 0x2c574f
mov dword [ebp - 0x20], 0x8bf70020
mov dword [ebp - 0x1c], 0x65b091cd
mov dword [ebp - 0x18], 0x8f7d4e0b
mov word [ebp - 0x14], ax
call fcn.0044fd40
xor eax, eax
mov dword [ebp - 0x38], 0
push eax
push 0x6d1800
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
call fcn.0043fcb0
xor eax, eax
mov dword [ebp - 4], 0xa
push eax
push 0x6d1800
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call fcn.0043fcb0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x60]
push 9
xor eax, eax
mov dword [ebp - 0x50], 0
push str.exec_fail
mov dword [ebp - 0x4c], 7
mov word [ebp - 0x60], ax
call fcn.0043fcb0
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x2c]
mov ecx, ebx
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.0049b5b0
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x4c]
cmp edx, 8
jb 0x499fcc
mov ecx, dword [ebp - 0x60]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x499fc2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x499fc2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00669e69
add esp, 8
xor eax, eax
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 7
mov word [ebp - 0x60], ax
cmp edx, 8
jb 0x49a020
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x49a016
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x49a016
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00669e69
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x34]
cmp edx, 8
jb 0x49a063
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x49a059
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x49a059
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00669e69
add esp, 8
mov eax, dword [ebx + 0x44]
push 4
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
jmp 0x49a1ea
push 0x3e8
push 4
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetTimer]
mov esi, dword [ebx + 0x68]
test esi, esi
je 0x49a0b5
mov ecx, dword [esi + 0x48]
test ecx, ecx
je 0x49a0b5
push ecx
push 0xf3
call fcn.00446900
mov eax, dword [esi + 0x48]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov eax, dword [esi + 4]
add eax, ecx
mov dword [esi + 0xc], eax
mov eax, dword [esi + 8]
add eax, edx
mov dword [esi + 0x10], eax
lea esi, [ebx + 0xa4]
mov dword [ebp - 0x68], esi
test esi, esi
je 0x49a0c9
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x38
mov dword [ebp - 4], 3
call fcn.00669e77
mov edi, eax
add esp, 4
lea ecx, [edi + 0x10]
mov dword [edi + 4], 1
lea eax, [edi + 4]
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x70], ecx
mov dword [edi + 8], 1
mov dword [edi], 0x6ea9b4
mov dword [ecx], 0x6ed61c
mov dword [ecx + 8], 0x496710
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x24], ecx
mov dword [ebp - 0x6c], edi
lock inc dword [eax]
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x74], edi
mov byte [ebp - 4], 5
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x28]
inc eax
cmp ecx, eax
ja 0x49a13d
push ecx
lea ecx, [esi + 0x20]
call fcn.00439d60
mov ecx, dword [esi + 0x28]
lea eax, [ecx - 1]
and dword [esi + 0x2c], eax
mov eax, dword [esi + 0x30]
add eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x28]
dec ecx
and ecx, eax
lea eax, [ecx*4]
mov ecx, dword [esi + 0x24]
mov dword [ebp - 0x64], eax
cmp dword [ecx + eax], 0
jne 0x49a17a
push 0x28
call fcn.00669e77
mov ecx, dword [esi + 0x24]
add esp, 4
mov edx, dword [ebp - 0x64]
mov dword [edx + ecx], eax
mov eax, edx
mov ecx, dword [esi + 0x24]
mov eax, dword [ecx + eax]
lea ecx, [edi + 0x10]
mov dword [eax], 0x6ed654
mov dword [eax + 4], ecx
mov dword [eax + 8], edi
mov dword [eax + 0x24], eax
inc dword [esi + 0x30]
cmp dword [esi + 0x18], 0
jne 0x49a1ba
lea eax, [esi + 0x1c]
push eax
push 0
push esi
push 0x43f580
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0x18], eax
mov byte [ebp - 4], 8
jmp 0x49a1be
mov byte [ebp - 4], 9
or ebx, 0xffffffff
lea ecx, [edi + 4]
mov eax, ebx
lock xadd dword [ecx], eax
jne 0x49a1e3
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lea eax, [edi + 8]
lock xadd dword [eax], ebx
dec ebx
jne 0x49a1e3
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
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.00669a1e
mov esp, ebp
pop ebp
ret