Function at 0x4bbf50
Capabilities:
Link many functions at runtime
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50d3e0
mov eax, dword fs:[0]
push eax
sub esp, 0x36c
mov eax, dword [0x567e00]
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 edi, ecx
mov dword [ebp - 0x364], edi
mov dword [ebp - 0x368], edi
mov ecx, dword [ebp + 0x10]
xor ebx, ebx
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x378], edi
mov dword [ebp - 0x350], ebx
mov dword [ebp - 0x36c], ecx
lea ecx, [edi + 0x38]
push eax
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
mov dword [edi + 0x24], ebx
mov dword [edi + 0x28], ebx
mov dword [edi + 0x2c], ebx
mov byte [edi + 0x34], bl
call fcn.004133c0
lea ecx, [edi + 0x50]
mov dword [ebp - 4], ebx
push esi
call fcn.004133c0
mov byte [ebp - 4], 1
cmp dword [esi + 0x10], ebx
jne 0x4bc104
lea eax, [ebp - 0x30c]
push 1
push eax
call fcn.004e58e0
push str._addonskdcsdkkdcsdk.dll
push eax
lea eax, [ebp - 0x294]
mov byte [ebp - 4], 2
push eax
call fcn.0040e0e0
lea esi, [edi + 0x50]
mov dword [ebp - 0x358], eax
add esp, 0x14
cmp esi, eax
je 0x4bc063
mov ecx, esi
call fcn.00403430
mov ecx, dword [ebp - 0x358]
mov eax, dword [ecx]
mov dword [esi], eax
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
mov eax, dword [ecx + 8]
mov dword [esi + 8], eax
mov eax, dword [ecx + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [ecx + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [ecx + 0x14]
mov dword [esi + 0x14], eax
xor eax, eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], 7
mov word [ecx], ax
mov edx, dword [ebp - 0x280]
cmp edx, 8
jb 0x4bc09f
mov ecx, dword [ebp - 0x294]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4bc095
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4bc0f2
push edx
push ecx
call fcn.004c6f6f
add esp, 8
mov edx, dword [ebp - 0x2f8]
xor eax, eax
mov dword [ebp - 0x284], 0
mov dword [ebp - 0x280], 7
mov word [ebp - 0x294], ax
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x4bc107
mov ecx, dword [ebp - 0x30c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4bc0f8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4bc0f8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004c6f6f
add esp, 8
jmp 0x4bc107
lea esi, [edi + 0x50]
cmp dword [esi + 0x14], 8
jb 0x4bc10f
mov esi, dword [esi]
push 8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [edi], eax
test eax, eax
je 0x4bc1bd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.dc_Init
push eax
call esi
push str.dc_Uninit
push dword [edi]
mov dword [edi + 4], eax
call esi
push str.dc_SendAppStartInfoc
push dword [edi]
mov dword [edi + 8], eax
call esi
push str.dc_SendAppEndInfoc
push dword [edi]
mov dword [edi + 0xc], eax
call esi
push str.dc_UpdateAccountID
push dword [edi]
mov dword [edi + 0x10], eax
call esi
push str.dc_CreateDataHandle
push dword [edi]
mov dword [edi + 0x14], eax
call esi
push str.dc_CloseDataHandle
push dword [edi]
mov dword [edi + 0x18], eax
call esi
push str.dc_AddKeyValue
push dword [edi]
mov dword [edi + 0x1c], eax
call esi
push str.dc_SendCommonEventInfoc
push dword [edi]
mov dword [edi + 0x20], eax
call esi
push str.dc_SendCountEventInfoc
push dword [edi]
mov dword [edi + 0x24], eax
call esi
push str.dc_CheckABTestTagExist
push dword [edi]
mov dword [edi + 0x28], eax
call esi
push str.dc_SetInfocCallback
push dword [edi]
mov dword [edi + 0x2c], eax
call esi
mov dword [edi + 0x30], eax
mov byte [edi + 0x34], 1
cmp dword [edi + 4], 0
je 0x4bcb7c
mov ecx, edi
call fcn.004bed60
cmp dword [0x567de0], 0xffffffff
mov dword [ebp - 0x358], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x368], eax
jne 0x4bc3c5
push 1
xor eax, eax
mov dword [ebp - 0x27c], 0
push 0x517cdc
lea ecx, [ebp - 0x27c]
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x268], 7
mov word [ebp - 0x27c], ax
call fcn.00403a70
lea eax, [ebp - 0x27c]
mov byte [ebp - 4], 3
push eax
push 0x5351fc
push dword [0x567d00]
push 0x80000001
call fcn.004bea60
add esp, 0x10
test eax, eax
je 0x4bc375
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0x10c], 0x5351ec
mov dword [ebp - 0xfc], 0x5351f4
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::constructor_void_]
push 0
lea eax, [ebp - 0xf4]
mov byte [ebp - 4], 4
mov ebx, 2
lea ecx, [ebp - 0x10c]
push eax
mov dword [ebp - 0x350], ebx
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::constructor_class_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t____]
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 4], 5
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0x10c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x110], eax
lea ecx, [ebp - 0xf4]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::constructor_void_]
mov dword [ebp - 0xf4], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xb8], 0
cmp dword [ebp - 0x268], 8
lea eax, [ebp - 0x27c]
push dword [ebp - 0x26c]
cmovae eax, dword [ebp - 0x27c]
push eax
lea eax, [ebp - 0xfc]
mov byte [ebp - 4], 6
push eax
call fcn.004bbb60
add esp, 0xc
lea ecx, [ebp - 0x10c]
push 0x567de0
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__::operator___int__]
mov eax, dword [ebp - 0x10c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0x10c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x110], eax
lea ecx, [ebp - 0xf4]
call fcn.004bcc80
lea ecx, [ebp - 0xec]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
lea ecx, [ebp - 0xa4]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
jmp 0x4bc37f
mov dword [0x567de0], 0
mov edx, dword [ebp - 0x268]
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x4bc3c5
mov ecx, dword [ebp - 0x27c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4bc3bb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4bc3bb
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004c6f6f
add esp, 8
cmp dword [0x567de0], 0
setne al
mov byte [ebp - 0x370], al
xor eax, eax
mov dword [ebp - 0x2c4], 0
mov word [ebp - 0x2c4], ax
lea edi, [ebp - 0x58]
mov eax, dword [str.userid]
mov ecx, 0x12
mov dword [ebp - 0x274], eax
mov esi, str.Softwarekingsoftwpsclouduserinfo
mov eax, dword [0x535154]
or ebx, 4
mov dword [ebp - 0x270], eax
mov eax, dword [0x535158]
mov dword [ebp - 0x26c], eax
mov ax, word [0x53515c]
mov word [ebp - 0x268], ax
lea eax, [ebp - 0x354]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 7
push eax
rep movsd dword es:[edi], dword [esi]
push 0x80000001
mov dword [ebp - 0x2b4], 0
mov dword [ebp - 0x2b0], 7
mov dword [ebp - 0x350], ebx
mov dword [ebp - 0x354], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4bc4ff
push 0x20a
push eax
mov dword [ebp - 0x360], eax
lea eax, [ebp - 0x264]
push eax
mov dword [ebp - 0x35c], 0x208
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x35c]
push eax
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x360]
push eax
push 0
lea eax, [ebp - 0x274]
push eax
push dword [ebp - 0x354]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4bc4f3
lea ecx, [ebp - 0x264]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4bc4d1
sub ecx, edx
lea eax, [ebp - 0x264]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2c4]
call fcn.00403a70
push dword [ebp - 0x354]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x2b0], 8
lea eax, [ebp - 0x2c4]
cmovae eax, dword [ebp - 0x2c4]
mov dword [ebp - 0x360], eax
lea eax, [ebp - 0x30c]
push eax
call fcn.004becc0
add esp, 4
mov dword [ebp - 0x354], eax
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 8
jb 0x4bc540
mov eax, dword [eax]
mov dword [ebp - 0x354], eax
lea eax, [ebp - 0x34c]
push eax
call fcn.004beb80
add esp, 4
mov edi, eax
cmp dword [edi + 0x14], 8
jb 0x4bc559
mov edi, dword [edi]
lea eax, [ebp - 0x334]
mov dword [ebp - method.std::_Func_impl_no_alloc_class__lambda_d4d17516f19ea89c9deded5480b70b22___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______.virtual_0], vtable.std::_Func_impl_no_alloc_class__lambda_d4d17516f19ea89c9deded5480b70b22___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______.0
mov dword [ebp - 0x310], eax
push eax
push 0x56d1e8
mov byte [ebp - 4], 0xa
call fcn.004bbab0
mov ecx, dword [ebp - 0x310]
add esp, 8
mov byte [ebp - 4], 9
test ecx, ecx
je 0x4bc5ac
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x334]
cmp ecx, eax
setne al
push eax
call edx
mov dword [ebp - 0x310], 0
push dword [0x56d1e8]
lea ecx, [ebp - 0x294]
call fcn.004133c0
or ebx, 8
mov dword [ebp - 0x350], ebx
cmp dword [ebp - 0x280], 8
lea eax, [ebp - 0x294]
mov dword [ebp - 0x38], vtable.std::_Func_impl_no_alloc_class__lambda_cc16d470d3eb24ed2440897db1c0463b___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______.0
cmovae eax, dword [ebp - 0x294]
mov dword [ebp - 0x35c], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x14], eax
push eax
push 0x56d1e0
mov byte [ebp - 4], 0xc
call fcn.004bbab0
mov ecx, dword [ebp - 0x14]
add esp, 8
mov byte [ebp - 4], 0xb
test ecx, ecx
je 0x4bc621
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x38]
cmp ecx, eax
setne al
push eax
call edx
mov dword [ebp - 0x14], 0
push dword [0x56d1e0]
lea ecx, [ebp - 0x2f4]
call fcn.004133c0
or ebx, 0x10
mov dword [ebp - 0x350], ebx
cmp dword [ebp - 0x2e0], 8
lea eax, [ebp - 0x2f4]
mov byte [ebp - 4], 0xd
cmovae eax, dword [ebp - 0x2f4]
mov dword [ebp - 0x374], eax
mov eax, dword [ebp - 0x36c]
cmp dword [eax + 0x10], 0
jne 0x4bc78b
or ebx, 0x20
call fcn.004e4f60
push 0x10
test al, al
je 0x4bc731
xor eax, eax
mov dword [ebp - 0x27c], 0
push str.Product_DcAppKey
lea ecx, [ebp - 0x27c]
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x268], 7
mov word [ebp - 0x27c], ax
call fcn.00403a70
lea eax, [ebp - 0x27c]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0x2ac]
push eax
call fcn.004e4390
mov edx, dword [ebp - 0x268]
add esp, 8
mov byte [ebp - 4], 0xd
cmp edx, 8
jb 0x4bc712
mov ecx, dword [ebp - 0x27c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4bc708
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4bc708
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004c6f6f
add esp, 8
xor eax, eax
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x268], 7
mov word [ebp - 0x27c], ax
jmp 0x4bc768
xor eax, eax
mov dword [ebp - 0x2ac], 0
push str.55c7e27bb603a2fb
lea ecx, [ebp - 0x2ac]
mov dword [ebp - 0x29c], 0
mov dword [ebp - 0x298], 7
mov word [ebp - 0x2ac], ax
call fcn.00403a70
or ebx, 1
mov byte [ebp - 4], 0xf
cmp dword [ebp - 0x298], 8
lea esi, [ebp - 0x2ac]
mov dword [ebp - 0x350], ebx
cmovae esi, dword [ebp - 0x2ac]
jmp 0x4bc795
cmp dword [eax + 0x14], 8
jb 0x4bc793
mov eax, dword [eax]
mov esi, eax
lea eax, [ebp - 0x324]
push eax
call fcn.004e6fa0
push str.wpsdcsdk
push eax
lea eax, [ebp - 0x27c]
mov dword [ebp - 4], 0x10
push eax
call fcn.0040e0e0
add esp, 0x10
mov edx, dword [ebp - 0x310]
mov byte [ebp - 4], 0x12
cmp edx, 8
jb 0x4bc801
mov ecx, dword [ebp - 0x324]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4bc7f7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4bc87e
push edx
push ecx
call fcn.004c6f6f
add esp, 8
xor eax, eax
mov dword [ebp - 0x314], 0
cmp dword [0x567d30], 0
mov ecx, 0x567d20
mov word [ebp - 0x324], ax
lea eax, [ebp - 0x27c]
cmovne eax, ecx
mov dword [ebp - 0x310], 7
push eax
lea ecx, [ebp - 0x2dc]
call fcn.004133c0
mov edx, dword [ebp - 0x268]
or ebx, 0x40
mov dword [ebp - 0x350], ebx
mov byte [ebp - 4], 0xf
cmp edx, 8
jb 0x4bc88e
mov ecx, dword [ebp - 0x27c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4bc884
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4bc884
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004c6f6f
add esp, 8
push dword [ebp - 0x370]
cmp dword [ebp - 0x2c8], 8
lea eax, [ebp - 0x2dc]
push dword [ebp - 0x358]
cmovae eax, dword [ebp - 0x2dc]
push dword [ebp - 0x360]
mov dword [ebp - 4], 0x13
push dword [ebp - 0x354]
push edi
push dword [ebp - 0x35c]
push dword [ebp - 0x374]
push esi
push eax
call dword [ebp - 0x368]
mov edx, dword [ebp - 0x2c8]
mov byte [ebp - 4], 0xf
cmp edx, 8
jb 0x4bc91a
mov ecx, dword [ebp - 0x2dc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4bc910
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4bcb56
push edx
push ecx
call fcn.004c6f6f
add esp, 8
xor eax, eax
mov dword [ebp - 0x2cc], 0
mov dword [ebp - 0x2c8], 7
mov word [ebp - 0x2dc], ax
mov dword [ebp - 4], 0xd
test bl, 1
je 0x4bc9a0
mov edx, dword [ebp - 0x298]
cmp edx, 8
jb 0x4bc983
mov ecx, dword [ebp - 0x2ac]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4bc979
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4bcb56
push edx
push ecx
call fcn.004c6f6f
add esp, 8
xor eax, eax
mov dword [ebp - 0x29c], 0
mov dword [ebp - 0x298], 7
mov word [ebp - 0x2ac], ax
mov edx, dword [ebp - 0x2e0]
mov byte [ebp - 4], 0xb
cmp edx, 8
jb 0x4bc9e4
mov ecx, dword [ebp - 0x2f4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4bc9da
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4bcb56
push edx
push ecx
call fcn.004c6f6f
add esp, 8
mov edx, dword [ebp - 0x280]
xor eax, eax
mov dword [ebp - 0x2e4], 0
mov dword [ebp - 0x2e0], 7
mov word [ebp - 0x2f4], ax
mov byte [ebp - 4], 9
cmp edx, 8
jb 0x4bca45
mov ecx, dword [ebp - 0x294]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4bca3b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4bcb56
push edx
push ecx
call fcn.004c6f6f
add esp, 8
mov edx, dword [ebp - 0x338]
xor eax, eax
mov dword [ebp - 0x284], 0
mov dword [ebp - 0x280], 7
mov word [ebp - 0x294], ax
mov byte [ebp - 4], 8
cmp edx, 8
jb 0x4bcaa6
mov ecx, dword [ebp - 0x34c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4bca9c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4bcb56
push edx
push ecx
call fcn.004c6f6f
add esp, 8
mov edx, dword [ebp - 0x2f8]
xor eax, eax
mov dword [ebp - 0x33c], 0
mov dword [ebp - 0x338], 7
mov word [ebp - 0x34c], ax
mov byte [ebp - 4], 7
cmp edx, 8
jb 0x4bcb03
mov ecx, dword [ebp - 0x30c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4bcaf9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4bcb56
push edx
push ecx
call fcn.004c6f6f
add esp, 8
mov edx, dword [ebp - 0x2b0]
xor eax, eax
mov dword [ebp - 0x2fc], 0
mov dword [ebp - 0x2f8], 7
mov word [ebp - 0x30c], ax
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x4bcb66
mov ecx, dword [ebp - 0x2c4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4bcb5c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4bcb5c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004c6f6f
add esp, 8
mov eax, dword [ebp - 0x358]
mov edi, dword [ebp - 0x364]
test eax, eax
je 0x4bcb7c
mov ecx, dword [edi + 0x1c]
push eax
call ecx
mov eax, edi
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.004c6f8b
mov esp, ebp
pop ebp
ret 0xc