Function at 0x470d80
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x671f19
mov eax, dword fs:[0]
push eax
sub esp, 0x460
mov eax, dword [0x74b738]
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 ebx, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x458], eax
xor eax, eax
mov dword [ebp - 0x460], eax
mov dword [ebp - 0x45c], eax
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 0x470f41
push 0x31
push str.f:master_luinst_ui_marketinstcommandparser.cpp
lea ecx, [ebp - 0x454]
mov dword [ebp - 0x444], eax
mov dword [ebp - 0x440], 0xf
mov byte [ebp - 0x454], al
call fcn.0042a9a0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x43c]
push 3
push 0x6d1880
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x428], 0xf
mov byte [ebp - 0x43c], 0
call fcn.0042a9a0
mov byte [ebp - 4], 1
call fcn.00509500
mov edi, eax
lea ecx, [ebp - 0xac]
push 0x40
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x43c]
push eax
call fcn.0042c590
mov esi, eax
push str.start_init_force_cmd..
push esi
mov byte [ebp - 4], 2
call fcn.0042c400
mov eax, dword [ebp - 0x458]
mov ecx, str._null_
test eax, eax
cmovne ecx, eax
push ecx
push esi
call fcn.0043f750
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0xac]
call fcn.00428ee0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x428]
cmp edx, 0x10
jb 0x470ee3
mov ecx, dword [ebp - 0x43c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x470ed9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x470ed9
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 - 0x440]
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x428], 0xf
mov byte [ebp - 0x43c], 0
cmp edx, 0x10
jb 0x470f41
mov ecx, dword [ebp - 0x454]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x470f37
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x470f37
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 edx, dword [ebp - 0x458]
test edx, edx
jne 0x470f4f
xor ecx, ecx
jmp 0x470f63
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x470f54
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebx + 0x1c]
call fcn.00441d80
mov ecx, ebx
call fcn.00472ce0
push 0x208
lea eax, [ebp - 0x21c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [ebp - 0x45c]
add esp, 0xc
mov dword [ebp - 0x458], 1
mov dword [ebp - 0x45c], 0x104
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x458]
push eax
push str.Setup_Path
push 0x6ec1e8
push reloc.OLEAUT32.dll_SysReAllocString
call esi
push str.ComputerZ_CN.exe
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4710be
push 0x208
lea eax, [ebp - 0x424]
mov dword [ebx + 0x48], 1
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x458]
push eax
push str.VendorID
push 0x6ec1e8
push reloc.OLEAUT32.dll_SysReAllocString
call esi
lea ecx, [ebp - 0x424]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x471040
sub ecx, edx
sar ecx, 1
je 0x4710be
push ecx
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebx + 0x20]
call fcn.00441d80
lea ecx, [ebx + 0x20]
call fcn.004375f0
lea ecx, [ebx + 0x20]
call fcn.00437540
mov eax, dword [ebx + 0x20]
mov ecx, 0x6eb0d0
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4710a6
test dx, dx
je 0x4710a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4710a6
add eax, 4
add ecx, 4
test dx, dx
jne 0x471080
xor eax, eax
jmp 0x4710ab
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4710be
push 7
push 0x6e96f0
lea ecx, [ebx + 0x20]
call fcn.00441d80
call fcn.004225c0
mov ecx, eax
test ecx, ecx
je 0x471e09
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x458], eax
mov eax, 0x74b9b8
mov dword [ebp - 4], 3
test eax, 0xffff0000
jne 0x4710ff
movzx eax, ax
lea ecx, [ebp - 0x458]
push eax
call fcn.00441820
jmp 0x471127
mov ecx, 0x74b9b8
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x471107
sub ecx, edx
sar ecx, 1
push ecx
push 0x74b9b8
lea ecx, [ebp - 0x458]
call fcn.00441d80
lea eax, [ebp - 0x458]
mov dword [ebp - 4], 4
push eax
mov ecx, ebx
call fcn.00473a10
mov dword [ebp - 4], 0xffffffff
or esi, 0xffffffff
mov edx, dword [ebp - 0x458]
mov dword [ebx + 0x30], eax
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x471166
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.004225c0
mov ecx, eax
test ecx, ecx
je 0x471e13
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x458], eax
mov eax, 0x74b96c
mov dword [ebp - 4], 5
test eax, 0xffff0000
jne 0x4711a7
movzx eax, ax
lea ecx, [ebp - 0x458]
push eax
call fcn.00441820
jmp 0x4711d0
mov ecx, 0x74b96c
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4711b0
sub ecx, edx
sar ecx, 1
push ecx
push 0x74b96c
lea ecx, [ebp - 0x458]
call fcn.00441d80
lea eax, [ebx + 0x24]
mov dword [ebp - 4], 6
push eax
lea eax, [ebp - 0x458]
mov ecx, ebx
push eax
call fcn.00473b00
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov edx, dword [ebp - 0x458]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47120d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.004225c0
mov ecx, eax
test ecx, ecx
je 0x471e1d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x458], eax
mov eax, 0x74b9c0
mov dword [ebp - 4], 7
test eax, 0xffff0000
jne 0x47124e
movzx eax, ax
lea ecx, [ebp - 0x458]
push eax
call fcn.00441820
jmp 0x471276
mov ecx, 0x74b9c0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x471256
sub ecx, edx
sar ecx, 1
push ecx
push 0x74b9c0
lea ecx, [ebp - 0x458]
call fcn.00441d80
lea eax, [ebx + 0x64]
mov dword [ebp - 4], 8
push eax
lea eax, [ebp - 0x458]
mov ecx, ebx
push eax
call fcn.00473b00
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov edx, dword [ebp - 0x458]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4712b3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.004225c0
mov ecx, eax
test ecx, ecx
je 0x471e27
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x458], eax
mov eax, 0x74bab4
mov dword [ebp - 4], 9
test eax, 0xffff0000
jne 0x4712f4
movzx eax, ax
lea ecx, [ebp - 0x458]
push eax
call fcn.00441820
jmp 0x471320
mov ecx, 0x74bab4
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x471300
sub ecx, edx
sar ecx, 1
push ecx
push 0x74bab4
lea ecx, [ebp - 0x458]
call fcn.00441d80
lea edi, [ebx + 0x2c]
mov dword [ebp - 4], 0xa
push edi
lea eax, [ebp - 0x458]
mov ecx, ebx
push eax
call fcn.00473b00
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov edx, dword [ebp - 0x458]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47135d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [edi]
cmp dword [edx - 0xc], 0
jne 0x4713a2
mov edx, str.Ludashi
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x45c], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x471375
sub ecx, dword [ebp - 0x45c]
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.00441d80
call fcn.004225c0
mov ecx, eax
test ecx, ecx
je 0x471e31
jmp 0x4713aa
test edx, edx
jne 0x47136a
xor ecx, ecx
jmp 0x471388
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x458], eax
mov eax, 0x74ba34
mov dword [ebp - 4], 0xb
test eax, 0xffff0000
jne 0x4713dc
movzx eax, ax
lea ecx, [ebp - 0x458]
push eax
call fcn.00441820
jmp 0x471404
mov ecx, 0x74ba34
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4713e4
sub ecx, edx
sar ecx, 1
push ecx
push 0x74ba34
lea ecx, [ebp - 0x458]
call fcn.00441d80
lea eax, [ebp - 0x458]
mov dword [ebp - 4], 0xc
push eax
mov ecx, ebx
call fcn.00473a10
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x458]
mov dword [ebx + 0x38], eax
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x471440
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.004225c0
mov ecx, eax
test ecx, ecx
je 0x471e3b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x458], eax
mov eax, 0x74b9e4
mov dword [ebp - 4], 0xd
test eax, 0xffff0000
jne 0x471481
movzx eax, ax
lea ecx, [ebp - 0x458]
push eax
call fcn.00441820
jmp 0x4714b0
mov ecx, 0x74b9e4
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x471490
sub ecx, edx
sar ecx, 1
push ecx
push 0x74b9e4
lea ecx, [ebp - 0x458]
call fcn.00441d80
lea eax, [ebp - 0x458]
mov dword [ebp - 4], 0xe
push eax
mov ecx, ebx
call fcn.00473a10
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x458]
mov dword [ebx + 0x68], eax
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4714ec
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.004225c0
mov ecx, eax
test ecx, ecx
je 0x471e45
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x458], eax
mov eax, 0x74b9f4
mov dword [ebp - 4], 0xf
test eax, 0xffff0000
jne 0x47152d
movzx eax, ax
lea ecx, [ebp - 0x458]
push eax
call fcn.00441820
jmp 0x471555
mov ecx, 0x74b9f4
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x471535
sub ecx, edx
sar ecx, 1
push ecx
push 0x74b9f4
lea ecx, [ebp - 0x458]
call fcn.00441d80
lea eax, [ebp - 0x458]
mov dword [ebp - 4], 0x10
push eax
mov ecx, ebx
call fcn.00473a10
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x458]
mov dword [ebx + 0x58], eax
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x471591
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.004225c0
mov ecx, eax
test ecx, ecx
je 0x471e4f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x458], eax
mov eax, 0x74ba08
mov dword [ebp - 4], 0x11
test eax, 0xffff0000
jne 0x4715d2
movzx eax, ax
lea ecx, [ebp - 0x458]
push eax
call fcn.00441820
jmp 0x471600
mov ecx, 0x74ba08
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4715e0
sub ecx, edx
sar ecx, 1
push ecx
push 0x74ba08
lea ecx, [ebp - 0x458]
call fcn.00441d80
lea eax, [ebp - 0x458]
mov dword [ebp - 4], 0x12
push eax
mov ecx, ebx
call fcn.00473a10
neg eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x458]
sbb eax, eax
add edx, 0xfffffff0
inc eax
mov dword [ebx + 0x5c], eax
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x471641
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.004225c0
mov ecx, eax
test ecx, ecx
je 0x471e59
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x458], eax
mov eax, 0x74ba14
mov dword [ebp - 4], 0x13
test eax, 0xffff0000
jne 0x471682
movzx eax, ax
lea ecx, [ebp - 0x458]
push eax
call fcn.00441820
jmp 0x4716b0
mov ecx, 0x74ba14
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x471690
sub ecx, edx
sar ecx, 1
push ecx
push 0x74ba14
lea ecx, [ebp - 0x458]
call fcn.00441d80
lea eax, [ebp - 0x458]
mov dword [ebp - 4], 0x14
push eax
mov ecx, ebx
call fcn.00473a10
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x458]
mov dword [ebx + 0x4c], eax
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4716ec
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.004225c0
mov ecx, eax
test ecx, ecx
je 0x471e63
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x458], eax
mov eax, 0x74bb10
mov dword [ebp - 4], 0x15
test eax, 0xffff0000
jne 0x47172d
movzx eax, ax
lea ecx, [ebp - 0x458]
push eax
call fcn.00441820
jmp 0x471755
mov ecx, 0x74bb10
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x471735
sub ecx, edx
sar ecx, 1
push ecx
push 0x74bb10
lea ecx, [ebp - 0x458]
call fcn.00441d80
lea eax, [ebp - 0x458]
mov dword [ebp - 4], 0x16
push eax
mov ecx, ebx
call fcn.00473a10
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x458]
mov dword [ebx + 0x50], eax
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x471791
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.004225c0
mov ecx, eax
test ecx, ecx
je 0x471e6d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x45c], eax
push 0xcd
lea ecx, [ebp - 0x45c]
mov dword [ebp - 4], 0x17
call fcn.00441820
mov dword [ebp - 4], 0x18
lea ecx, [ebx + 0x28]
mov edi, dword [ebp - 0x45c]
mov edx, dword [ecx]
add edi, 0xfffffff0
sub edx, 0x10
mov dword [ebp - 0x464], edx
cmp edi, edx
je 0x47184a
cmp dword [edx + 0xc], 0
lea eax, [edx + 0xc]
mov dword [ebp - 0x458], eax
mov eax, dword [ebp - 0x45c]
jl 0x471841
mov ecx, dword [edi]
cmp ecx, dword [edx]
jne 0x47183e
push edi
call fcn.00441300
mov dword [ebp - 0x468], eax
add esp, 4
mov eax, dword [ebp - 0x458]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x471830
mov eax, dword [ebp - 0x464]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x468]
add eax, 0x10
mov dword [ebx + 0x28], eax
jmp 0x47184a
lea ecx, [ebx + 0x28]
push dword [eax - 0xc]
push eax
call fcn.00441d80
mov dword [ebp - 4], 0xffffffff
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x471865
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
push 0x6ec1e4
push dword [ebx + 0x28]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x47191b
cmp dword [ebx + 0x60], 0
jne 0x47191b
call fcn.004225c0
mov ecx, eax
test ecx, ecx
je 0x471e77
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x458], eax
mov eax, 0x74b9cc
mov dword [ebp - 4], 0x19
test eax, 0xffff0000
jne 0x4718c9
movzx eax, ax
lea ecx, [ebp - 0x458]
push eax
call fcn.00441820
jmp 0x4718f1
mov ecx, 0x74b9cc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4718d1
sub ecx, edx
sar ecx, 1
push ecx
push 0x74b9cc
lea ecx, [ebp - 0x458]
call fcn.00441d80
mov eax, 1
mov dword [ebp - 4], 0x1a
mov dword [ebp - 0x460], eax
mov ecx, ebx
mov dword [ebp - 0x45c], eax
lea eax, [ebp - 0x458]
push eax
call fcn.00473a10
test eax, eax
je 0x471920
mov eax, 1
mov dword [ebx + 0x60], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x460]
test al, 1
je 0x47195a
mov edx, dword [ebp - 0x458]
and eax, 0xfffffffe
mov dword [ebp - 0x460], eax
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47195a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebx + 0x3c], 0
jne 0x4719fe
call fcn.004225c0
mov ecx, eax
test ecx, ecx
je 0x471e81
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x458], eax
mov eax, 0x74bad0
mov dword [ebp - 4], 0x1b
test eax, 0xffff0000
jne 0x4719a5
movzx eax, ax
lea ecx, [ebp - 0x458]
push eax
call fcn.00441820
jmp 0x4719d0
mov ecx, 0x74bad0
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4719b0
sub ecx, edx
sar ecx, 1
push ecx
push 0x74bad0
lea ecx, [ebp - 0x458]
call fcn.00441d80
mov dword [ebp - 4], 0x1c
mov ecx, ebx
mov eax, dword [ebp - 0x460]
or eax, 2
mov dword [ebp - 0x460], eax
mov dword [ebp - 0x45c], eax
lea eax, [ebp - 0x458]
push eax
call fcn.00473a10
test eax, eax
je 0x471a03
mov eax, 1
mov dword [ebx + 0x3c], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x460]
test al, 2
je 0x471a3d
mov edx, dword [ebp - 0x458]
and eax, 0xfffffffd
mov dword [ebp - 0x460], eax
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x471a3d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebx + 0x40], 0
jne 0x471ade
call fcn.004225c0
mov ecx, eax
test ecx, ecx
je 0x471e8b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x458], eax
mov eax, 0x74baf0
mov dword [ebp - 4], 0x1d
test eax, 0xffff0000
jne 0x471a88
movzx eax, ax
lea ecx, [ebp - 0x458]
push eax
call fcn.00441820
jmp 0x471ab0
mov ecx, 0x74baf0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x471a90
sub ecx, edx
sar ecx, 1
push ecx
push 0x74baf0
lea ecx, [ebp - 0x458]
call fcn.00441d80
mov dword [ebp - 4], 0x1e
mov ecx, ebx
mov eax, dword [ebp - 0x460]
or eax, 4
mov dword [ebp - 0x460], eax
mov dword [ebp - 0x45c], eax
lea eax, [ebp - 0x458]
push eax
call fcn.00473a10
test eax, eax
je 0x471ae3
mov eax, 1
mov dword [ebx + 0x40], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x460]
test al, 4
je 0x471b1d
mov edx, dword [ebp - 0x458]
and eax, 0xfffffffb
mov dword [ebp - 0x460], eax
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x471b1d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebx + 0x44], 0
jne 0x471bbe
call fcn.004225c0
mov ecx, eax
test ecx, ecx
je 0x471e95
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x458], eax
mov eax, 0x74bb28
mov dword [ebp - 4], 0x1f
test eax, 0xffff0000
jne 0x471b68
movzx eax, ax
lea ecx, [ebp - 0x458]
push eax
call fcn.00441820
jmp 0x471b90
mov ecx, 0x74bb28
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x471b70
sub ecx, edx
sar ecx, 1
push ecx
push 0x74bb28
lea ecx, [ebp - 0x458]
call fcn.00441d80
mov dword [ebp - 4], 0x20
mov ecx, ebx
mov eax, dword [ebp - 0x460]
or eax, 8
mov dword [ebp - 0x460], eax
mov dword [ebp - 0x45c], eax
lea eax, [ebp - 0x458]
push eax
call fcn.00473a10
test eax, eax
je 0x471bc3
mov eax, 1
mov dword [ebx + 0x44], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x460]
test al, 8
je 0x471bf4
mov edx, dword [ebp - 0x458]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x471bf4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.004225c0
mov ecx, eax
test ecx, ecx
je 0x471e9f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x45c], eax
mov eax, 0x74ba78
mov dword [ebp - 4], 0x21
test eax, 0xffff0000
jne 0x471c35
movzx eax, ax
lea ecx, [ebp - 0x45c]
push eax
call fcn.00441820
jmp 0x471c60
mov ecx, 0x74ba78
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x471c40
sub ecx, edx
sar ecx, 1
push ecx
push 0x74ba78
lea ecx, [ebp - 0x45c]
call fcn.00441d80
lea eax, [ebx + 0x14]
mov dword [ebp - 4], 0x22
push eax
lea eax, [ebp - 0x45c]
mov ecx, ebx
push eax
call fcn.00473b00
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov edx, dword [ebp - 0x45c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x471c9d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.004225c0
mov ecx, eax
test ecx, ecx
je 0x471ea9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x45c], eax
mov eax, 0x74ba98
mov dword [ebp - 4], 0x23
test eax, 0xffff0000
jne 0x471cde
movzx eax, ax
lea ecx, [ebp - 0x45c]
push eax
call fcn.00441820
jmp 0x471d06
mov ecx, 0x74ba98
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x471ce6
sub ecx, edx
sar ecx, 1
push ecx
push 0x74ba98
lea ecx, [ebp - 0x45c]
call fcn.00441d80
lea eax, [ebx + 0x18]
mov dword [ebp - 4], 0x24
push eax
lea eax, [ebp - 0x45c]
mov ecx, ebx
push eax
call fcn.00473b00
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov edx, dword [ebp - 0x45c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x471d43
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.004225c0
mov ecx, eax
test ecx, ecx
je 0x471eb3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x45c], eax
mov eax, 0x74ba58
mov dword [ebp - 4], 0x25
test eax, 0xffff0000
jne 0x471d84
movzx eax, ax
lea ecx, [ebp - 0x45c]
push eax
call fcn.00441820
jmp 0x471db0
mov ecx, 0x74ba58
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x471d90
sub ecx, edx
sar ecx, 1
push ecx
push 0x74ba58
lea ecx, [ebp - 0x45c]
call fcn.00441d80
lea eax, [ebx + 0xc]
mov dword [ebp - 4], 0x26
push eax
lea eax, [ebp - 0x45c]
mov ecx, ebx
push eax
call fcn.00473b00
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x45c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x471deb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.00669a1e
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00422220
push 0x80004005
call fcn.00422220
push 0x80004005
call fcn.00422220
push 0x80004005
call fcn.00422220
push 0x80004005
call fcn.00422220
push 0x80004005
call fcn.00422220
push 0x80004005
call fcn.00422220
push 0x80004005
call fcn.00422220
push 0x80004005
call fcn.00422220
push 0x80004005
call fcn.00422220
push 0x80004005
call fcn.00422220
push 0x80004005
call fcn.00422220
push 0x80004005
call fcn.00422220
push 0x80004005
call fcn.00422220
push 0x80004005
call fcn.00422220
push 0x80004005
call fcn.00422220
push 0x80004005
call fcn.00422220
push 0x80004005
call fcn.00422220
int3