Function at 0x1001ddd0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x91c
mov cl, byte [esp + 3]
mov al, byte [esp + 3]
push ebx
push ebp
push esi
xor esi, esi
push edi
mov byte [esp + 0x38], cl
push esi
lea ecx, [esp + 0x3c]
mov dword [esp + 0x92c], esi
mov byte [esp + 0x18], al
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
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, 0x10051888
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x10051888
lea ecx, [esp + 0x40]
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 edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x1c]
call fcn.10025570
mov ecx, dword [esp + 0x40]
mov ebp, dword [esp + 0x934]
lea edx, [esp + 0x38]
mov dword [esp + 0x24], ecx
mov ebx, dword [ebp + 8]
push esi
push edx
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int_const]
mov edi, eax
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp edi, dword [eax]
je 0x1001ded4
cmp esi, ebx
jae 0x1001df1a
mov ecx, edi
lea edx, [esp + 0x28]
sub ecx, esi
push ecx
push esi
push edx
mov ecx, ebp
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_]
lea eax, [esp + 0x28]
push 0x1005096c
push eax
call fcn.1000c7f0
mov edx, dword [esp + 0x24]
add esp, 8
lea ecx, [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.100197d0
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x38]
lea esi, [edi + eax]
push esi
push ecx
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int_const]
push 1
lea ecx, [esp + 0x2c]
mov edi, 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 edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp edi, dword [edx]
jne 0x1001de67
cmp esi, ebx
jae 0x1001df1a
sub ebx, esi
lea eax, [esp + 0x28]
push ebx
push esi
push eax
mov ecx, ebp
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_]
lea ecx, [esp + 0x28]
push 0x1005096c
push ecx
call fcn.1000c7f0
mov eax, dword [esp + 0x24]
add esp, 8
lea edx, [esp + 0x28]
lea ecx, [esp + 0x14]
push edx
push eax
call fcn.100197d0
push 1
lea ecx, [esp + 0x2c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x3c]
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, dword [ebp + 4]
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]
test eax, eax
je 0x1001df35
mov ecx, eax
mov edx, dword [esp + 0x18]
test edx, edx
jne 0x1001df41
xor eax, eax
jmp 0x1001df4a
mov eax, dword [esp + 0x1c]
sub eax, edx
sar eax, 4
push ecx
mov ecx, dword [0x10056984]
push eax
push str.login__enter:_param__u__s
push ecx
call fcn.10028e20
mov eax, dword [esp + 0x28]
add esp, 0x10
test eax, eax
je 0x1001df76
mov edx, dword [esp + 0x1c]
sub edx, eax
sar edx, 4
cmp edx, 7
jae 0x1001dfc2
mov ebp, dword [ebp + 4]
test ebp, ebp
jne 0x1001df83
mov ebp, 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 eax, dword [esp + 0x930]
push ebp
push eax
lea ecx, [esp + 0x30]
push 0x100518a8
push ecx
call fcn.100027d0
mov ecx, dword [0x10056a0c]
add esp, 0x10
push eax
push 0xcf
call fcn.100093a0
push 1
lea ecx, [esp + 0x2c]
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 ebx, ebx
jmp 0x1001e666
mov esi, eax
push 0
lea ecx, [esp + 0x2c]
mov dl, byte [esi]
mov byte [esp + 0x2c], dl
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, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ecx, dword [eax]
push ecx
push 0
push esi
lea ecx, [esp + 0x34]
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_]
lea edx, [esp + 0x24]
test edx, edx
je 0x1001e048
mov eax, dword [esp + 0x18]
push 1
add eax, 0x10
push 1
push eax
lea ecx, [esp + 0x64]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___int_]
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x5c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::operator___int__]
mov edx, dword [esp + 0x58]
mov eax, dword [edx + 4]
test byte [esp + eax + 0x5c], 6
je 0x1001e02e
mov dword [esp + 0x24], 0
lea ecx, [esp + 0xac]
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xac]
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x39]
mov byte [esp + 0x38], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x729]
mov byte [esp + 0x728], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x18]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ebx, dword [ecx + 0x24]
test ebx, ebx
jne 0x1001e089
mov ebx, 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, 8
xor eax, eax
lea edi, [esp + 0x38]
push 0x41
rep stosd dword es:[edi], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
mov ecx, 0x10
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
push 0x40
push ebx
push esi
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0x10
mov byte [esi + 0x40], 0
xor ecx, ecx
mov al, byte [ecx + esi]
cmp al, 0x41
jl 0x1001e0ce
cmp al, 0x5a
jg 0x1001e0ce
add al, 0x20
mov byte [ecx + esi], al
inc ecx
cmp ecx, 0x40
jl 0x1001e0be
xor edi, edi
mov ebp, esi
mov dl, byte [ebp + 1]
push edx
call fcn.10025090
mov ebx, eax
mov al, byte [ebp]
push eax
call fcn.10025090
shl al, 4
add bl, al
add esp, 8
mov byte [esp + edi + 0x38], bl
inc edi
add ebp, 2
cmp edi, 0x20
jl 0x1001e0d8
push esi
call fcn.10047cb0
mov ecx, dword [esp + 0x1c]
add esp, 4
mov eax, dword [ecx + 0x34]
test eax, eax
jne 0x1001e11a
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]
push 0x200
lea edx, [esp + 0x72c]
push eax
push edx
call dword [sym.imp.MSVCRT.dll_strncpy]
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 edx, dword [esp + 0x24]
add esp, 0xc
add edx, 0x40
mov ecx, dword [eax]
mov eax, dword [0x10056a14]
push ecx
push 0
push edx
lea ecx, [eax + 0x254]
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 ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov eax, dword [esp + 0x18]
add eax, 0x20
mov edx, dword [ecx]
mov ecx, dword [0x10056a14]
push edx
push 0
push eax
add ecx, 0x34
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 edx, dword [0x10056a14]
mov ecx, 8
lea esi, [esp + 0x38]
lea edi, [edx + 0x14]
rep movsd dword es:[edi], dword [esi]
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 edx, dword [esp + 0x18]
add edx, 0x30
mov ecx, dword [eax]
mov eax, dword [0x10056a14]
push ecx
push 0
push edx
lea ecx, [eax + 0x244]
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 ecx, dword [0x10056a14]
lea esi, [esp + 0x728]
xor eax, eax
lea edi, [ecx + 0x44]
mov ecx, 0x80
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x191
lea edi, [esp + 0xe1]
mov byte [esp + 0xe0], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x1001e1ec
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]
push eax
push 0x100518d0
lea edx, [esp + 0xe8]
push 0x80
push edx
call fcn.1002a490
mov eax, dword [esp + 0x34]
mov ecx, 8
lea esi, [esp + 0x48]
lea edi, [esp + 0x174]
mov dword [esp + 0x170], eax
push str.g_center__login_begin
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x80
lea esi, [esp + 0x73c]
lea edi, [esp + 0x198]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x10056984]
push ecx
call fcn.10028e20
mov eax, dword [esp + 0x30]
add esp, 0x18
test eax, eax
je 0x1001e26c
mov edx, dword [esp + 0x1c]
sub edx, eax
sar edx, 4
cmp edx, 7
jbe 0x1001e26c
mov bl, byte [esp + 0x928]
lea ecx, [eax + 0x70]
jmp 0x1001e28d
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x3c], 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 eax, dword [esp + 0x18]
mov ebx, 1
lea ecx, [esp + 0x38]
mov edx, dword [esp + 0x24]
push ecx
lea ecx, [eax + 0x60]
add eax, 0x50
push ecx
mov ecx, dword [0x10056a0c]
push eax
lea eax, [esp + 0x34]
push edx
push eax
call fcn.10007fd0
test al, al
sete byte [esp + 0x13]
test bl, 1
je 0x1001e2c3
push 1
lea ecx, [esp + 0x3c]
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 al, byte [esp + 0x13]
test al, al
je 0x1001e310
mov ecx, dword [0x10056984]
push str.g_center__login_failed
push ecx
call fcn.10028e20
add esp, 8
lea ecx, [esp + 0x28]
push 1
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, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
cmp esi, edi
je 0x1001e6c3
push 0
mov ecx, esi
call fcn.10025510
add esi, 0x10
cmp esi, edi
jne 0x1001e2fb
jmp 0x1001e6bf
mov edx, dword [0x10056984]
push str.login__load_config_from_session.
push edx
call fcn.10028e20
mov ecx, dword [0x10056a0c]
add esp, 8
call fcn.10009160
mov eax, dword [0x10056984]
push str.login__send_enviromnment.
push eax
call fcn.10028e20
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
xor ebx, ebx
cmp ebp, ebx
je 0x1001e3fc
mov cl, byte [ebp]
xor esi, esi
test cl, cl
je 0x1001e374
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
call edi
lea esi, [esi + eax + 1]
mov cl, byte [esi + ebp]
lea eax, [esi + ebp]
test cl, cl
jne 0x1001e363
mov ecx, dword [0x10056984]
push esi
push str.login__get_enviromnment_success__env_size_d.
push ecx
call fcn.10028e20
add esp, 0xc
lea edx, [esi + 8]
lea ecx, [esp + 0x38]
mov dword [esp + 0x40], ebx
push ebx
push ebx
push edx
call fcn.10006370
mov ecx, dword [0x10056a14]
mov eax, dword [esp + 0x40]
push 2
mov edx, dword [ecx + 0x29c]
mov ecx, esi
mov dword [eax], edx
mov dword [eax + 4], esi
lea edi, [eax + 8]
mov eax, ecx
mov esi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
push ecx
mov ecx, dword [0x10056a0c]
push edx
push 0x10105
call fcn.10009950
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x1001e447
push eax
call fcn.10047cb0
add esp, 4
jmp 0x1001e447
push ebx
call fcn.1002f6e0
push eax
mov eax, dword [0x10056984]
push str.login__get_environment_failed:__s
push eax
call fcn.10028ea0
mov ecx, dword [0x10056a14]
add esp, 0x10
lea eax, [esp + 0x38]
mov dword [esp + 0x38], ebx
push 2
mov dword [esp + 0x40], ebx
mov edx, dword [ecx + 0x29c]
mov ecx, dword [0x10056a0c]
push eax
push 8
push 0x10105
mov dword [esp + 0x48], edx
call fcn.10009950
mov eax, dword [0x10056a14]
mov ecx, dword [eax + 0x2a0]
mov dword [esp + 0x584], ecx
mov edx, dword [eax + 0x2d0]
mov dword [esp + 0x588], edx
mov ecx, dword [eax + 0x2d4]
mov dword [esp + 0x58c], ecx
mov edx, dword [eax + 0x2d8]
mov ecx, dword [0x10056a0c]
mov dword [esp + 0x590], edx
xor eax, eax
mov dl, byte [ecx + 0x7f4]
test dl, dl
setne al
mov dword [esp + 0x594], eax
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x1001e59e
mov ecx, dword [esp + 0x1c]
mov edx, ecx
sub edx, eax
sar edx, 4
cmp edx, 8
jbe 0x1001e4e8
mov eax, dword [eax + 0x84]
cmp eax, ebx
jne 0x1001e4c5
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]
push eax
push 0x10051998
lea eax, [esp + 0x5a4]
push 0x80
push eax
call fcn.1002a490
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
add esp, 0x10
cmp eax, ebx
je 0x1001e59e
mov edx, ecx
sub edx, eax
sar edx, 4
cmp edx, 9
jbe 0x1001e52e
mov eax, dword [eax + 0x94]
cmp eax, ebx
jne 0x1001e50b
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]
push eax
push 0x1005199c
lea eax, [esp + 0x624]
push 0x80
push eax
call fcn.1002a490
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
add esp, 0x10
cmp eax, ebx
je 0x1001e59e
mov edx, ecx
sub edx, eax
sar edx, 4
cmp edx, 0xa
jbe 0x1001e570
mov eax, dword [eax + 0xa4]
cmp eax, ebx
jne 0x1001e54d
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]
push eax
push 0x100519a0
lea eax, [esp + 0x6a4]
push 0x80
push eax
call fcn.1002a490
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
add esp, 0x10
cmp eax, ebx
je 0x1001e59e
sub ecx, eax
sar ecx, 4
cmp ecx, 0xb
jbe 0x1001e59e
mov eax, dword [eax + 0xb4]
cmp eax, ebx
jne 0x1001e58d
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]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [esp + 0x71c], eax
mov ecx, dword [esp + 0x71c]
mov edx, dword [esp + 0x594]
mov eax, dword [esp + 0x590]
push ecx
mov ecx, dword [esp + 0x590]
push edx
mov edx, dword [esp + 0x590]
push eax
mov eax, dword [esp + 0x590]
push ecx
mov ecx, dword [0x10056984]
push edx
push eax
push str.login__regist_to_session_usrinfo_compress_d__reconn_d__reconn_cnt_d__reconn_intv_d__hostcheck_d__relogin_d_
push ecx
call fcn.10028e20
mov ecx, dword [0x10056a0c]
add esp, 0x20
lea edx, [esp + 0xe0]
push 2
push edx
push 0x648
push 0x10102
call fcn.10009950
mov eax, dword [0x10056984]
push str.login__query_vnic_state.
push eax
call fcn.10028e20
mov ecx, dword [0x10056a14]
add esp, 8
mov dword [ecx + 0x264], ebx
mov edx, dword [0x10056a14]
mov ecx, dword [0x10056a0c]
add edx, 0x264
push 8
push edx
push 4
push 0x10204
call fcn.10009950
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x1001e666
mov cl, byte [eax - 1]
test cl, cl
je 0x1001e65c
cmp cl, 0xff
je 0x1001e65c
dec cl
mov byte [eax - 1], cl
jmp 0x1001e666
dec eax
push eax
call fcn.10047cb0
add esp, 4
mov eax, dword [0x10056984]
push str.login__leave
push eax
call fcn.10028e20
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
add esp, 8
cmp esi, eax
mov edi, eax
je 0x1001e6c3
add esi, 4
mov eax, dword [esi]
cmp eax, ebx
je 0x1001e6ad
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x1001e6a4
cmp al, 0xff
je 0x1001e6a4
dec al
mov byte [ecx], al
jmp 0x1001e6ad
push ecx
call fcn.10047cb0
add esp, 4
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
add esi, 0x10
lea ecx, [esi - 4]
cmp ecx, edi
jne 0x1001e68a
mov esi, dword [esp + 0x18]
push esi
call fcn.10047cb0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x91c
ret