Function at 0x418740
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41bfad
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x154
cmp word [0x422b08], 0
push ebx
push esi
push edi
je 0x41877b
mov al, byte [0x422afc]
mov byte [0x422afb], 1
test al, al
jne 0x418782
mov byte [0x422afb], 0
mov al, byte [0x4229c8]
add al, 0x62
and eax, 0xff
add eax, 3
and al, 0xfc
call fcn.0041a770
mov ecx, esp
mov edx, 0x4229c8
call fcn.004196b0
mov esi, eax
mov al, byte [ebp + 0xb]
push 0
lea ecx, [ebp - 0x4c]
mov byte [ebp - 0x4c], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [ebp - 0x4c]
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x4187f2
mov edi, dword [ebp - 0x48]
mov ecx, ebx
mov edx, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x4c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
movsx ax, byte [0x422af9]
mov edx, dword [0x422b1c]
mov dword [ebp - 4], 0
or eax, edx
mov byte [0x422af8], 1
mov word [0x422b12], ax
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x418822
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov ecx, dword [ebp - 0x44]
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push ecx
push ebx
push eax
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int__unsigned_int_const]
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov edi, eax
mov byte [0x422af9], 0xff
cmp dword [edx], edi
jne 0x418c8c
mov dword [0x422b38], 0xf3ae0000
mov eax, dword [esi + 8]
cmp eax, ebx
mov dword [ebp - 0x38], ebx
je 0x418a94
movsx ecx, word [0x422b0a]
movsx ax, byte [0x422afe]
mov dl, byte [0x422b20]
add ax, word [0x422b08]
or ecx, 0x8eb9ffff
mov dword [0x422b28], ecx
mov cl, byte [0x422af8]
add dl, cl
mov word [0x422b04], ax
mov byte [0x422af9], dl
mov esi, dword [esi + 4]
cmp esi, ebx
jne 0x4188ad
mov esi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x3c]
push eax
push 0x20019
push ebx
push esi
push ecx
call dword [0x422f88]
test eax, eax
jne 0x418c70
movsx edx, word [0x422b0c]
movsx eax, word [0x422b10]
movsx cx, byte [0x422aff]
mov edi, dword [ebp + 0x10]
sub eax, edx
mov dx, word [0x422b12]
mov dword [0x422b34], eax
neg ecx
mov word [0x422b0e], cx
mov word [0x422b10], dx
mov eax, dword [edi + 4]
mov dword [ebp + 0xc], ebx
cmp eax, ebx
jne 0x418910
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea ecx, [ebp + 0xc]
lea edx, [ebp + 0xb]
push ecx
lea ecx, [ebp - 0x34]
push edx
mov edx, dword [ebp - 0x3c]
push ecx
push ebx
push eax
push edx
call dword [0x422f90]
cmp eax, 0xea
mov byte [0x422afc], 0xfe
jne 0x418a2c
mov al, byte [0x422af9]
mov ecx, dword [ebp + 0xc]
dec al
inc ecx
push ecx
mov byte [0x422afb], al
mov dword [0x422b34], 0xc101ffff
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, dword [ebp + 0xc]
mov esi, eax
add esp, 4
mov dword [ebp + 0x10], esi
mov byte [esi + edx], 0
mov byte [0x422b00], 0xff
movsx eax, byte [0x422af8]
movsx ecx, word [0x422b0a]
sub eax, 0x535e0001
or ecx, 0xa99dffff
mov dword [0x422b24], eax
mov dword [0x422b38], ecx
mov eax, dword [edi + 4]
cmp eax, ebx
jne 0x4189a0
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea edx, [ebp + 0xc]
lea ecx, [ebp - 0x34]
push edx
mov edx, dword [ebp - 0x3c]
push esi
push ecx
push ebx
push eax
push edx
call dword [0x422f90]
cmp eax, ebx
jne 0x418a23
mov ebx, dword [ebp + 0x14]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov esi, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ebx + 8]
sub ecx, edx
cmp ecx, esi
ja 0x4189d5
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
test esi, esi
jbe 0x418a19
mov eax, dword [ebx + 8]
push 0
add eax, esi
mov ecx, ebx
push eax
mov dword [ebp + 0x14], eax
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x418a19
mov edi, dword [ebx + 8]
mov ecx, dword [ebx + 4]
add edi, ecx
mov ecx, esi
mov esi, dword [ebp + 0x10]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0x14]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx + 8], eax
mov ebx, dword [ebx + 4]
add ebx, eax
mov byte [ebx], 0
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x38], 1
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov bl, byte [0x422b00]
mov cl, byte [0x422b04]
mov edx, dword [ebp - 0x3c]
xor eax, eax
test bl, bl
setne al
neg cl
push edx
mov dword [0x422b28], eax
mov byte [0x422af8], cl
call dword [0x422f78]
mov al, byte [0x422b08]
mov bl, byte [0x422af8]
mov dl, byte [0x422b30]
xor ecx, ecx
and bl, al
cmp word [0x422b0a], cx
mov al, byte [0x422b04]
mov byte [0x422af8], bl
setne cl
sub dl, al
mov word [0x422b10], cx
mov byte [0x422aff], dl
jmp 0x418c50
movsx eax, word [0x422b0c]
movsx ecx, word [0x422b0a]
mov ebx, dword [ebp + 0x10]
and eax, ecx
mov byte [0x422afc], 0
mov dword [0x422b30], 0x43620000
mov dword [0x422b1c], eax
mov eax, dword [ebx + 4]
test eax, eax
mov dword [ebp + 0xc], 0
jne 0x418ad0
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov edi, dword [ebp + 8]
lea edx, [ebp + 0xc]
push edx
lea ecx, [ebp + 0xb]
lea edx, [ebp - 0x34]
push ecx
push edx
push 0
push eax
push edi
call dword [0x422f90]
mov cx, word [0x422b1c]
cmp eax, 0xea
mov word [0x422b04], cx
mov dword [0x422b20], 1
jne 0x418c70
mov edx, dword [0x422b18]
mov esi, dword [0x422b28]
mov eax, dword [ebp + 0xc]
or edx, esi
inc eax
mov dword [0x422b34], edx
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [ebp + 0xc]
mov esi, eax
xor eax, eax
add esp, 4
mov byte [esi + ecx], 0
mov dl, byte [0x422b08]
sub dl, 2
cmp word [0x422b0a], ax
mov dword [0x422b20], 0xe0c1fffe
mov byte [0x422afc], dl
setne al
mov word [0x422b04], ax
mov eax, dword [ebx + 4]
test eax, eax
mov dword [ebp + 0x10], esi
jne 0x418b70
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea ecx, [ebp + 0xc]
lea edx, [ebp - 0x34]
push ecx
push esi
push edx
push 0
push eax
push edi
call dword [0x422f90]
movsx cx, byte [0x422afb]
mov dx, word [0x422b10]
inc ecx
inc dx
mov word [0x422b0c], cx
test eax, eax
mov word [0x422b02], dx
mov word [0x422b0e], 1
jne 0x418c39
mov edx, dword [0x422b20]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
test edx, edx
setne al
mov dword [0x422b24], eax
mov dword [0x422b30], 0xfd09fffe
mov edx, dword [ecx]
mov ecx, dword [ebx + 8]
sub edx, ecx
cmp edx, esi
ja 0x418beb
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
test esi, esi
jbe 0x418c2f
mov eax, dword [ebx + 8]
push 0
add eax, esi
mov ecx, ebx
push eax
mov dword [ebp + 0x14], eax
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x418c2f
mov edi, dword [ebx + 8]
mov eax, dword [ebx + 4]
mov ecx, esi
mov esi, dword [ebp + 0x10]
add edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx + 8], eax
mov ebx, dword [ebx + 4]
add ebx, eax
mov byte [ebx], 0
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x38], 1
push esi
mov byte [0x422afc], 1
mov byte [0x422aff], 0xff
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x418c70
push 1
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
xor eax, eax
jmp 0x419154
push 1
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, 2
jmp 0x419154
mov cl, byte [ebp + 0xb]
push ebx
mov byte [ebp - 0x30], cl
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
cmp edi, ebx
mov byte [ebp - 4], 1
mov dword [0x422b18], 0xcda20001
jbe 0x418cfa
mov eax, dword [esi + 8]
lea ebx, [edi - 1]
cmp eax, ebx
ja 0x418cbe
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xran_void_]
mov edx, dword [esi + 4]
cmp byte [edx + ebx], 0x5c
jne 0x418cfa
push ebx
lea eax, [ebp - 0x60]
push 0
push eax
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov byte [ebp - 4], 2
mov edx, dword [ecx]
lea ecx, [ebp - 0x30]
push edx
push 0
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov byte [ebp - 4], 1
push 1
lea ecx, [ebp - 0x60]
jmp 0x418d2b
push edi
lea eax, [ebp - 0x60]
push 0
push eax
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov byte [ebp - 4], 3
mov edx, dword [ecx]
lea ecx, [ebp - 0x30]
push edx
push 0
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov byte [ebp - 4], 1
push 1
lea ecx, [ebp - 0x60]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
movsx eax, byte [0x422af8]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
and eax, 0x5dcbffff
mov dword [0x422b18], eax
mov eax, dword [ebp - 0x44]
mov edx, dword [ecx]
add eax, edi
push edx
lea ecx, [ebp - 0x1c]
push eax
push ecx
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], 4
test esi, esi
je 0x418e27
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x418da3
mov cl, byte [eax - 1]
test cl, cl
je 0x418d91
cmp cl, 0xff
je 0x418d91
push 0
push esi
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x418d9f
mov byte [eax - 1], 0xff
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov ecx, eax
jmp 0x418da9
mov ecx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
cmp byte [ecx], 0x5c
jne 0x418e27
test eax, eax
mov ebx, 1
je 0x418dec
mov cl, byte [eax - 1]
test cl, cl
je 0x418dec
cmp cl, 0xff
je 0x418dec
push ebx
lea ecx, [ebp - 0x1c]
mov esi, eax
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
cmp esi, 1
jae 0x418df7
mov ebx, esi
test ebx, ebx
jbe 0x418e27
sub esi, ebx
lea edx, [ebx + eax]
push esi
push edx
push eax
call dword [sym.imp.MSVCRT.dll_memmove]
mov esi, dword [ebp - 0x14]
add esp, 0xc
sub esi, ebx
lea ecx, [ebp - 0x1c]
push 0
push esi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x418e27
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], esi
mov byte [eax + esi], 0
movsx cx, byte [0x422afc]
movsx ax, byte [0x422af9]
or edx, 0xffffffff
xor edi, edi
sub edx, ecx
dec eax
mov word [0x422b0a], ax
mov eax, dword [ebp - 0x2c]
cmp eax, edi
mov dword [0x422b2c], 0x8bedfffe
mov word [0x422b12], dx
mov byte [0x422afa], 0xfe
jne 0x418e69
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x20]
push ecx
push 0x20019
push edi
push eax
push edx
call dword [0x422f88]
mov esi, eax
mov word [0x422b0c], 0xffff
movsx ax, byte [0x422afa]
dec eax
cmp esi, edi
mov word [0x422b10], ax
jne 0x418f2f
push edi
push edi
mov edx, dword [ebp - 0x20]
push edi
push edi
push edi
push edi
lea ecx, [ebp - 0x50]
push edi
push ecx
push edi
push edi
push edi
push edx
mov byte [0x422b00], 0xff
call dword [0x422f8c]
mov esi, eax
mov dword [0x422b28], 0xcc2e0000
movsx eax, byte [0x422af9]
imul eax, dword [0x422b34]
cmp esi, edi
mov dword [0x422b20], eax
je 0x418f92
movsx ecx, byte [0x422aff]
mov edx, dword [0x422b24]
mov dword [0x422b38], 0xb25fffe
and ecx, edx
mov edx, dword [ebp - 0x20]
push edx
mov word [0x422b06], di
mov dword [0x422b1c], ecx
call dword [0x422f78]
movsx eax, word [0x422b0c]
imul eax, eax, 0x1da7ffff
mov dword [0x422b34], eax
mov byte [0x422aff], 0xff
mov ecx, dword [ebp - 0x18]
cmp ecx, edi
je 0x419117
mov al, byte [ecx - 1]
test al, al
je 0x41910d
cmp al, 0xff
je 0x41910d
dec al
mov byte [ecx - 1], al
jmp 0x419117
dec ecx
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x2c], edi
cmp ecx, edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
je 0x419152
mov al, byte [ecx - 1]
test al, al
je 0x419148
cmp al, 0xff
je 0x419148
dec al
mov byte [ecx - 1], al
jmp 0x419152
mov eax, dword [ebp - 0x50]
mov cl, byte [0x422b0e]
cmp eax, edi
mov byte [0x422aff], cl
jbe 0x4190b9
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov al, byte [0x422af9]
or dx, 0xffff
sub dx, word [0x422b02]
or cx, 0xffff
sub cx, word [0x422b0e]
push 0
mov word [0x422b10], dx
push 0
mov byte [0x422af8], al
push 0
lea edx, [ebp + 8]
push 0
lea eax, [ebp - 0x160]
mov word [0x422b04], cx
mov ecx, dword [ebp - 0x20]
push edx
push eax
push edi
push ecx
mov byte [0x422afd], 0xff
mov dword [ebp + 8], 0xff
mov byte [ebp - 0x160], 0
call ebx
mov eax, dword [0x422b18]
mov dx, word [0x422b24]
mov ecx, dword [ebp + 8]
or eax, 0x6e57ffff
mov word [0x422b0e], dx
mov dword [0x422b34], eax
shl al, 1
lea edx, [ebp + 0xc]
mov byte [0x422afe], al
push edx
mov byte [ebp + ecx - 0x160], 0
mov ecx, dword [ebp - 0x20]
push 0x20019
lea eax, [ebp - 0x160]
push 0
push eax
push ecx
call dword [0x422f88]
mov esi, eax
mov dword [0x422b18], 0x24bbfffe
test esi, esi
jne 0x4190b9
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
push eax
push ecx
push edx
call fcn.00418740
add esp, 0x10
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
call dword [0x422f78]
mov cl, byte [0x422b24]
mov word [0x422b12], 1
test esi, esi
mov word [0x422b10], 0xffff
mov byte [0x422af8], cl
je 0x4190b9
mov eax, dword [ebp - 0x50]
inc edi
cmp edi, eax
jb 0x418faf
mov eax, dword [ebp - 0x20]
xor edi, edi
xor edx, edx
cmp word [0x422b06], di
push eax
setne dl
mov dword [0x422b24], edx
call dword [0x422f78]
movsx edx, byte [0x422afb]
mov ecx, dword [0x422b28]
mov dword [0x422b28], 0x1421ffff
and cx, word [0x422b12]
and edx, 0x2151ffff
mov dword [0x422b34], edx
mov word [0x422b0c], cx
jmp 0x418f2f
dec ecx
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], edi
cmp ecx, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
je 0x418f61
mov al, byte [ecx - 1]
test al, al
je 0x418f57
cmp al, 0xff
je 0x418f57
dec al
mov byte [ecx - 1], al
jmp 0x418f61
dec ecx
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x16c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret