Function at 0x10024400
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100b11ad
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
mov ebx, dword [esp + 0x68]
push ebp
push esi
test bx, bx
push edi
mov esi, ecx
jl 0x10024e50
cmp bx, 2
jg 0x10024e50
mov edi, dword [esp + 0x84]
mov ebp, dword [esp + 0x78]
mov eax, dword [esp + 0x7c]
and edi, 7
cmp edi, 4
mov dword [esp + 0x30], edi
je 0x10024490
test ax, ax
jl 0x10024470
cmp ax, 2
jg 0x10024470
cmp bx, ax
jne 0x10024490
cmp ebp, dword [esp + 0x80]
jne 0x10024490
xor eax, eax
jmp 0x10024e81
mov esi, dword [esi + 8]
test esi, esi
je 0x10024e7c
cmp dword [esi + 0x654], 0x32
jge 0x10024e7c
movsx eax, ax
jmp 0x10024e63
movsx eax, bx
test eax, eax
mov dword [esp + 0x18], eax
jl 0x10024e7c
cmp eax, 1
jle 0x1002475e
cmp eax, 2
jne 0x10024e7c
push 0
lea ecx, [esi + 0x18]
push 0
push ebx
mov dword [esp + 0x20], ecx
call dword [sym.imp.OOLAPLib.dll_public:_class_CMDXDimension____thiscall_CMDXBuilder::GetAxisDimPtr_short_int__long_int__int_]
test eax, eax
mov dword [esp + 0x2c], eax
jne 0x10024504
mov esi, dword [esi + 8]
test esi, esi
je 0x10024e7c
cmp dword [esi + 0x654], 0x32
jge 0x10024e7c
push 0
push 2
push 0x100e
push 0x40
add esi, 0x640
push 0
push esi
call fcn.1009bf70
add esp, 0x18
jmp 0x10024e7c
mov ecx, dword [eax + 8]
dec ecx
cmp ebp, ecx
jle 0x10024527
mov esi, dword [esi + 8]
test esi, esi
je 0x10024e7c
cmp dword [esi + 0x654], 0x32
jge 0x10024e7c
push ebp
jmp 0x100244e5
mov edx, dword [esp + 0x78]
mov eax, dword [eax + 4]
push 0
push 0
mov ebx, dword [eax + edx*4]
lea ecx, [edx*4]
mov ecx, dword [esi + 0x25d8]
mov edx, dword [esi + 0x25d4]
lea eax, [ebx + 4]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x28], eax
mov eax, dword [eax]
push eax
push ecx
push edx
call fcn.100991a0
push 0x74
mov edi, eax
call sub.MFC42.DLL_operatornew
mov ebp, eax
add esp, 0x18
mov dword [esp + 0x1c], ebp
test ebp, ebp
mov dword [esp + 0x6c], 0
je 0x1002458e
push 0
mov ecx, ebp
call dword [sym.imp.OOLAPLib.dll_public:_void___thiscall_CMDXDimension::constructor_long_int_]
mov dword [ebp], 0x100c2aa4
jmp 0x10024590
xor ebp, ebp
lea eax, [edi*8]
mov edx, dword [esi + 0x25d4]
sub eax, edi
mov dword [esp + 0x6c], 0xffffffff
mov dword [esp + 0x1c], ebp
lea eax, [eax + eax*4]
lea ecx, [edi + eax*8]
lea eax, [edx + ecx*4 + 0x81]
mov ecx, ebp
push eax
call dword [sym.imp.OOLAPLib.dll_public:_void___thiscall_CMDXDimension::SetDimName_char_const__]
mov ecx, dword [esi + 0x25d8]
mov edx, dword [esi + 0x25d4]
push ecx
push edx
mov ecx, ebp
call dword [sym.imp.OOLAPLib.dll_public:_void___thiscall_CMDXDimension::SetMetaData_struct___MIDL___MIDL_itf_OpenMD_0000_0007___long_int_]
lea ecx, [esp + 0x34]
call fcn.100ae9aa
lea ecx, [esp + 0x18]
mov dword [esp + 0x6c], 1
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebx + 8]
lea eax, [ebx + 8]
mov byte [esp + 0x6c], 2
mov edx, dword [ecx - 8]
test edx, edx
jne 0x10024607
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
lea edx, [esp + 0x34]
push edx
push 0x5b
push 0x2c
push 0x5d
push eax
call fcn.1009a200
mov eax, dword [esp + 0x50]
add esp, 0x14
xor ebx, ebx
dec eax
test eax, eax
jl 0x100246e3
lea ecx, [esp + 0x24]
push ebx
push ecx
lea ecx, [esp + 0x3c]
call fcn.1000be00
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x70], 3
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x24]
mov byte [esp + 0x6c], 2
call fcn.100ae920
push 0x18
call sub.MFC42.DLL_operatornew
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
test edi, edi
mov byte [esp + 0x6c], 4
je 0x100246ae
mov eax, dword [esp + 0x18]
mov edx, dword [esi + 0x25d8]
push 1
push 0
mov dword [esp + 0x28], eax
push eax
mov eax, dword [esi + 0x25d4]
push edx
push eax
call fcn.10098d80
mov ecx, dword [esp + 0x34]
add esp, 0x10
push eax
push ecx
mov ecx, edi
call dword [sym.imp.OOLAPLib.dll_public:_void___thiscall_CMDXMember::constructor_char_const___unsigned_char__unsigned_long_int_]
mov dword [edi], 0x100c28e4
mov dword [esp + 0x10], edi
jmp 0x100246b6
mov dword [esp + 0x10], 0
mov edi, dword [ebp + 8]
push 0xffffffffffffffff
mov ecx, ebp
mov byte [esp + 0x70], 2
lea edx, [edi + 1]
push edx
call fcn.10019ba0
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x10]
inc ebx
mov dword [eax + edi*4], ecx
mov edx, dword [esp + 0x3c]
dec edx
cmp ebx, edx
jle 0x1002462c
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
call dword [eax + 4]
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x78]
push 1
mov ecx, dword [ebp + 4]
mov edi, dword [ebp + 8]
lea ebx, [eax*4]
sub edi, eax
add ecx, ebx
dec edi
push ecx
call dword [sym.imp.OOLAPLib.dll_void___stdcall_DestructElements_class_CMDXMember____int_]
test edi, edi
je 0x10024733
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x78]
lea edx, [edi*4]
push edx
lea edx, [eax + ecx*4 + 4]
add eax, ebx
push edx
push eax
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0xc
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x18]
dec eax
mov byte [esp + 0x6c], 1
mov dword [ebp + 8], eax
call fcn.100ae920
lea ecx, [esp + 0x34]
mov dword [esp + 0x6c], 0xffffffff
call sub.MFC42.DLL_CStringArray::CStringArray
jmp 0x1002484a
lea ecx, [esi + 0x18]
push 0
push ebx
mov dword [esp + 0x1c], ecx
call dword [sym.imp.OOLAPLib.dll_public:_class_CMDXAxis____thiscall_CMDXBuilder::GetAxisPtr_short_int__class_CMDXPackage__]
cmp edi, 2
mov ebp, eax
je 0x10024781
mov eax, dword [ebp + 8]
dec eax
test eax, eax
jle 0x10024e7c
mov edi, dword [esp + 0x78]
mov ecx, dword [esp + 0x14]
push 0
push edi
push ebx
call dword [sym.imp.OOLAPLib.dll_public:_class_CMDXDimension____thiscall_CMDXBuilder::GetAxisDimPtr_short_int__long_int__int_]
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x100247be
mov esi, dword [esi + 8]
test esi, esi
je 0x10024e7c
cmp dword [esi + 0x654], 0x32
jge 0x10024e7c
mov ecx, dword [esp + 0x18]
push edi
push ecx
jmp 0x100244e7
mov ecx, dword [esp + 0x78]
mov eax, dword [ebp + 4]
push 1
lea ebx, [ecx*4]
mov edx, ebx
mov dword [ebx + eax], 0
mov eax, dword [ebp + 4]
mov edi, dword [ebp + 8]
add edx, eax
sub edi, ecx
push edx
dec edi
call dword [sym.imp.OOLAPLib.dll_void___stdcall_DestructElements_class_CMDXDimension____int_]
test edi, edi
je 0x1002480d
mov eax, dword [ebp + 4]
mov edx, dword [esp + 0x78]
lea ecx, [edi*4]
push ecx
lea ecx, [eax + edx*4 + 4]
add eax, ebx
push ecx
push eax
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x74]
dec edx
test ax, ax
mov dword [ebp + 8], edx
jne 0x10024824
mov eax, 1
jmp 0x10024831
mov ecx, dword [esp + 0x18]
dec ax
neg ax
sbb eax, eax
and eax, ecx
mov ecx, dword [esp + 0x14]
push 0
push eax
call dword [sym.imp.OOLAPLib.dll_public:_class_CMDXAxis____thiscall_CMDXBuilder::GetAxisPtr_short_int__class_CMDXPackage__]
push 0xffffffffffffffff
push 0
lea ecx, [eax + 0x20]
call fcn.10030d70
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x10024e7c
cmp dword [esp + 0x30], 4
jne 0x100248cc
mov eax, dword [ebp + 0x5c]
add esi, 0x10b0
push eax
mov ecx, esi
call dword [sym.imp.OOLAPLib.dll_public:_int___thiscall_CMDXFiltersStore::Find_char_const__]
mov ebx, eax
test ebx, ebx
jl 0x100248bb
mov edx, dword [esi + 4]
mov edi, dword [esi + 8]
lea eax, [ebx*4]
sub edi, ebx
add edx, eax
push 1
push edx
dec edi
mov dword [esp + 0x7c], eax
call dword [sym.imp.OOLAPLib.dll_void___stdcall_DestructElements_class_CMDXFilters____int_]
test edi, edi
je 0x100248b8
mov eax, dword [esi + 4]
lea ecx, [edi*4]
push ecx
mov ecx, dword [esp + 0x78]
lea edx, [eax + ebx*4 + 4]
add eax, ecx
push edx
push eax
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0xc
dec dword [esi + 8]
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx + 4]
xor eax, eax
jmp 0x10024e81
movsx eax, word [esp + 0x7c]
test eax, eax
jl 0x10024e4c
cmp eax, 1
jle 0x10024cdc
cmp eax, 2
jne 0x10024e4c
mov edi, dword [esp + 0x74]
cmp di, ax
je 0x10024991
mov eax, dword [ebp + 0x2c]
dec eax
js 0x10024975
push 0x20
call sub.MFC42.DLL_operatornew
mov ebx, eax
add esp, 4
mov dword [esp + 0x30], ebx
test ebx, ebx
mov dword [esp + 0x6c], 5
je 0x1002492a
mov ecx, ebx
call dword [sym.imp.OOLAPLib.dll_public:_void___thiscall_CMDXFilters::constructor_void_]
mov dword [ebx], 0x100c2908
jmp 0x1002492c
xor ebx, ebx
lea ecx, [ebp + 0x24]
mov dword [esp + 0x6c], 0xffffffff
push ecx
mov ecx, ebx
call dword [sym.imp.OOLAPLib.dll_public:_void___thiscall_CMDXFilters::operator_class_CMDXFilters__]
lea edx, [ebp + 0x5c]
lea ecx, [ebx + 0x1c]
push edx
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [esi + 0x10b8]
lea edi, [esi + 0x10b0]
mov dword [esp + 0x30], eax
inc eax
push 0xffffffffffffffff
push eax
mov ecx, edi
call fcn.10030ab0
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x74]
mov dword [eax + ecx*4], ebx
test byte [ebp + 0x1c], 8
je 0x10024991
mov eax, dword [ebp + 0x54]
test eax, eax
je 0x10024991
lea edx, [ebp + 0x5c]
lea ecx, [esi + 0x10cc]
push edx
call sub.MFC42.DLL_CStringList::AddTail
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x14]
push 1
push 0
push eax
call dword [sym.imp.OOLAPLib.dll_public:_class_CMDXDimension____thiscall_CMDXBuilder::GetAxisDimPtr_short_int__long_int__int_]
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x30], eax
mov eax, dword [eax + 8]
mov dword [esp + 0x7c], eax
lea edx, [eax - 1]
cmp ecx, edx
jg 0x100249c1
mov dword [esp + 0x7c], ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
mov dword [esp + 0x70], 6
call dword [sym.imp.OOLAPLib.dll_public:_void___thiscall_CMDXDimension::GetDimName_class_CString__]
test di, di
je 0x100249ee
cmp di, 1
jne 0x10024b8c
mov eax, dword [esp + 0x84]
test ah, 4
je 0x10024b8c
mov ecx, dword [esp + 0x10]
push 0xa
push 0x100e0b40
push ecx
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x10024b8c
lea ecx, [esp + 0x74]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 0x54]
mov byte [esp + 0x6c], 7
test eax, eax
je 0x10024ae9
mov edx, dword [esp + 0x78]
mov ecx, esi
push edx
push edi
call fcn.10021210
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*2]
mov eax, dword [esi + 0x1198]
lea edi, [eax + edx*8 + 0x14]
mov eax, dword [eax + edx*8 + 0x20]
test eax, eax
jg 0x10024aac
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x78]
lea edx, [esp + 0x80]
push ecx
push edx
push eax
mov ecx, esi
call fcn.100211a0
push 0xa
lea ecx, [esp + 0x4c]
call fcn.100aea28
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x80]
push 0xffffffffffffffff
push edi
push 0
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x80], 8
call fcn.10025690
lea ecx, [esp + 0x48]
mov byte [esp + 0x6c], 7
call sub.MFC42.DLL_CStringList::CStringList
mov esi, dword [edi + 4]
mov eax, dword [edi + 0xc]
xor ebx, ebx
mov dword [esp + 0x78], eax
test esi, esi
je 0x10024ae1
test ebx, ebx
jle 0x10024acb
push 0x2c
lea ecx, [esp + 0x78]
call sub.MFC42.DLL_CString::operator
mov eax, esi
mov esi, dword [esi]
add eax, 8
lea ecx, [esp + 0x74]
push eax
call fcn.100aea2e
inc ebx
test esi, esi
jne 0x10024abc
mov eax, dword [esp + 0x78]
test eax, eax
jg 0x10024b1b
mov ebx, dword [ebp + 8]
xor esi, esi
test ebx, ebx
jle 0x10024b1f
mov ecx, dword [ebp + 4]
test esi, esi
mov edi, dword [ecx + esi*4]
jle 0x10024b07
push 0x2c
lea ecx, [esp + 0x78]
call sub.MFC42.DLL_CString::operator
mov eax, dword [edi + 4]
lea ecx, [esp + 0x74]
push eax
call fcn.100ae91a
inc esi
cmp esi, ebx
jl 0x10024af2
jmp 0x10024b1f
mov ebx, dword [esp + 0x78]
push 0x18
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x78], esi
test esi, esi
mov byte [esp + 0x6c], 9
je 0x10024b48
mov ecx, esi
call dword [sym.imp.OOLAPLib.dll_public:_void___thiscall_CMDXSlicer::constructor_void_]
mov dword [esi], 0x100c2fc4
jmp 0x10024b4a
xor esi, esi
xor edx, edx
cmp ebx, 1
setle dl
dec edx
mov byte [esi + 0xc], 0
and edx, 0x3f
push 1
inc edx
mov ecx, esi
mov dword [esi + 0x10], edx
mov eax, dword [esp + 0x78]
push eax
mov byte [esp + 0x74], 7
call dword [sym.imp.OOLAPLib.dll_public:_void___thiscall_CMDXMember::SetName_char_const___int_]
lea ecx, [esp + 0x74]
mov dword [esi + 0x14], 1
mov byte [esp + 0x6c], 6
call fcn.100ae920
jmp 0x10024ca8
mov ecx, dword [ebp + 4]
mov eax, dword [esp + 0x88]
test eax, eax
mov edi, dword [ecx]
je 0x10024bd1
cmp word [eax], 0
je 0x10024bd1
push eax
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [eax]
push 1
push eax
mov ecx, edi
mov byte [esp + 0x74], 0xa
call dword [sym.imp.OOLAPLib.dll_public:_void___thiscall_CMDXMember::SetName_char_const___int_]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x6c], 6
call fcn.100ae920
jmp 0x10024c6e
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x80]
lea eax, [esp + 0x84]
push edx
push eax
push ecx
mov ecx, esi
call fcn.100211a0
push 0xa
lea ecx, [esp + 0x4c]
call fcn.100aea28
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x48]
push 1
push edx
push 0
push eax
mov bl, 0xb
push ecx
mov ecx, esi
mov byte [esp + 0x80], bl
call fcn.10025690
mov eax, dword [esp + 0x54]
test eax, eax
jne 0x10024c2e
mov eax, dword [edi + 4]
jmp 0x10024c35
mov edx, dword [esp + 0x4c]
mov eax, dword [edx + 8]
push eax
lea ecx, [esp + 0x7c]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x78]
push 1
push eax
mov ecx, edi
mov byte [esp + 0x74], 0xc
call dword [sym.imp.OOLAPLib.dll_public:_void___thiscall_CMDXMember::SetName_char_const___int_]
lea ecx, [esp + 0x78]
mov byte [esp + 0x6c], bl
call fcn.100ae920
lea ecx, [esp + 0x48]
mov byte [esp + 0x6c], 6
call sub.MFC42.DLL_CStringList::CStringList
push 0x18
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x74], esi
test esi, esi
mov byte [esp + 0x6c], 0xd
je 0x10024c99
mov ecx, esi
call dword [sym.imp.OOLAPLib.dll_public:_void___thiscall_CMDXSlicer::constructor_void_]
mov dword [esi], 0x100c2fc4
mov ecx, esi
jmp 0x10024c9b
xor ecx, ecx
mov edx, dword [ecx]
push edi
mov byte [esp + 0x70], 6
mov esi, ecx
call dword [edx + 0xc]
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x30]
push 1
push esi
push eax
call dword [sym.imp.OOLAPLib.dll_public:_void___thiscall_CMDXDimension::InsertAt_int__class_CMDXMember___int_]
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx + 4]
lea ecx, [esp + 0x10]
mov dword [esp + 0x6c], 0xffffffff
call fcn.100ae920
xor eax, eax
jmp 0x10024e81
cmp word [esp + 0x74], 2
jne 0x10024daa
mov eax, dword [ebp + 0x5c]
lea ebx, [esi + 0x10b0]
push eax
mov ecx, ebx
call dword [sym.imp.OOLAPLib.dll_public:_int___thiscall_CMDXFiltersStore::Find_char_const__]
test eax, eax
mov dword [esp + 0x78], eax
jl 0x10024d6a
mov ecx, dword [esi + 0x10b4]
shl eax, 2
mov dword [esp + 0x74], eax
mov edx, dword [ecx + eax]
lea ecx, [ebp + 0x24]
push edx
call dword [sym.imp.OOLAPLib.dll_public:_void___thiscall_CMDXFilters::operator_class_CMDXFilters__]
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
mov dword [ebp + 0x44], 0
mov edi, dword [ebx + 8]
sub edi, edx
mov edx, dword [ebx + 4]
add eax, edx
push 1
push eax
dec edi
call dword [sym.imp.OOLAPLib.dll_void___stdcall_DestructElements_class_CMDXFilters____int_]
test edi, edi
je 0x10024d67
mov eax, dword [ebx + 4]
mov edx, dword [esp + 0x78]
lea ecx, [edi*4]
push ecx
lea ecx, [eax + edx*4 + 4]
mov edx, dword [esp + 0x78]
push ecx
add eax, edx
push eax
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0xc
dec dword [ebx + 8]
mov eax, dword [ebp + 0x5c]
add esi, 0x10cc
push 0
push eax
mov ecx, esi
call sub.MFC42.DLL_CStringList::Find
test eax, eax
je 0x10024d9b
mov edx, dword [ebp + 0x1c]
push eax
or edx, 8
mov ecx, esi
mov dword [ebp + 0x1c], edx
mov dword [ebp + 0x54], 1
call sub.MFC42.DLL_CStringList::RemoveAt
jmp 0x10024daa
mov eax, dword [ebp + 0x1c]
mov dword [ebp + 0x54], 0
and al, 0xf7
mov dword [ebp + 0x1c], eax
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x14]
push 0
push eax
call dword [sym.imp.OOLAPLib.dll_public:_class_CMDXAxis____thiscall_CMDXBuilder::GetAxisPtr_short_int__class_CMDXPackage__]
mov edi, dword [esp + 0x80]
mov esi, eax
mov ebx, dword [esi + 8]
lea ecx, [ebx - 1]
cmp edi, ecx
jle 0x10024dd0
mov edi, ebx
cmp edi, ebx
push 0xffffffffffffffff
jl 0x10024de3
lea edx, [edi + 1]
mov ecx, esi
push edx
call fcn.10030ed0
jmp 0x10024e32
lea eax, [ebx + 1]
mov ecx, esi
push eax
call fcn.10030ed0
mov ecx, dword [esi + 4]
push 1
lea edx, [ecx + ebx*4]
push edx
call dword [sym.imp.OOLAPLib.dll_void___stdcall_DestructElements_class_CMDXDimension____int_]
mov eax, dword [esi + 4]
mov ecx, edi
shl ecx, 0x1e
sub ecx, edi
lea ebp, [edi*4]
add ecx, ebx
shl ecx, 2
lea edx, [eax + ebp]
push ecx
lea eax, [eax + edi*4 + 4]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_memmove]
mov eax, dword [esi + 4]
add esp, 0xc
add ebp, eax
mov dword [ebp], 0
mov ecx, dword [esp + 0x1c]
xor eax, eax
shl edi, 2
mov edx, dword [esi + 4]
add edi, 4
mov dword [edi + edx - 4], ecx
mov edx, eax
dec eax
test edx, edx
jne 0x10024e3b
xor eax, eax
jmp 0x10024e81
mov esi, dword [esi + 8]
test esi, esi
je 0x10024e7c
cmp dword [esi + 0x654], 0x32
jge 0x10024e7c
movsx eax, bx
push eax
push 0x100d
push 0x40
add esi, 0x640
push 0
push esi
call fcn.1009bf70
add esp, 0x14
mov eax, 0x80004005
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x60
ret 0x18