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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52d09e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x184
push ebx
mov ebx, ecx
push esi
push edi
fild dword [ebx + 0x1dc]
fld dword [ebx + 0x5c]
fadd dword [ebx + 0x58]
fmul st(1)
call sub.MSVCRT.dll__ftol
fild dword [ebx + 0x1e0]
mov esi, dword [ebx + 0x1d4]
sub esi, eax
fstp dword [esp + 0x10]
fld dword [ebx + 0x64]
fadd dword [ebx + 0x60]
mov dword [esp + 0x3c], esi
fmul dword [esp + 0x10]
call sub.MSVCRT.dll__ftol
mov edi, dword [ebx + 0x1d8]
fmul dword [ebx + 0x58]
sub edi, eax
mov dword [esp + 0x40], edi
call sub.MSVCRT.dll__ftol
fld dword [esp + 0x10]
fmul dword [ebx + 0x60]
mov dword [esp + 0x2c], eax
call sub.MSVCRT.dll__ftol
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x30], eax
add eax, edi
add ecx, esi
mov dword [esp + 0x38], eax
lea edx, [esp + 0x3c]
lea eax, [esp + 0x2c]
mov dword [esp + 0x34], ecx
push edx
push eax
mov ecx, ebx
call fcn.004d5670
mov eax, dword [ebx + 0x1b4]
test eax, eax
je 0x4d628a
mov al, byte [ebx + 0x8a]
test al, al
je 0x4d628a
cmp byte [ebx + 0x6b], 1
jne 0x4d628a
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x24], eax
lea eax, [ebx + 0x1ac]
mov dword [esp + 0x20], edx
mov dword [esp + 0x28], ecx
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 dl, byte [eax]
xor esi, esi
mov byte [esp + 0x68], dl
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], esi
mov edx, dword [ecx]
lea ecx, [esp + 0x68]
push edx
push esi
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 eax, dword [ebx + 0x210]
mov ecx, dword [ebx + 0x38]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x6c]
cmp eax, esi
jne 0x4d623a
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, [esp + 0x1c]
push 0xc11
push edx
push 0xffffffffffffffff
push eax
mov eax, dword [ebx + 0x38]
push eax
call dword [sym.imp.USER32.dll_DrawTextA]
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x40]
sub edi, eax
sub edx, eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x38], edi
cmp eax, esi
mov dword [esp + 0x40], edx
je 0x4d628a
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4d6281
cmp al, 0xff
je 0x4d6281
dec al
mov byte [ecx], al
jmp 0x4d628a
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [ebx]
xor edi, edi
mov dword [esp + 0x18], edi
mov ecx, dword [eax + 8]
test ecx, ecx
jle 0x4d6a37
cmp edi, ecx
jge 0x4d62ad
test edi, edi
jl 0x4d62ad
mov ecx, dword [eax + 4]
mov esi, dword [ecx + edi*4]
jmp 0x4d62af
xor esi, esi
mov ecx, esi
mov dword [esp + 0x64], esi
call fcn.004e13f0
test eax, eax
jne 0x4d62c5
mov ecx, esi
call fcn.004e1360
mov ecx, esi
mov dword [esp + 0x10], 0
call fcn.004e1400
test eax, eax
jle 0x4d6a27
mov eax, dword [ebx + 0x40]
test eax, eax
jne 0x4d6a37
push 0x1c
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0xc], esi
test esi, esi
mov dword [esp + 0x198], 0
je 0x4d633a
push 0x80
mov dword [esi], 0x539e30
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esi + 4], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0x1f
mov dword [esi + 0x14], 0x40
mov dword [esi + 0x10], 1
jmp 0x4d633c
xor esi, esi
test esi, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x198], 0xffffffff
je 0x4d63f3
mov eax, dword [ebx + 0x1f8]
mov ecx, dword [ebx + 0x1f4]
lea edx, [eax + 1]
cmp ecx, edx
jne 0x4d63d7
mov ecx, dword [ebx + 0x200]
add ecx, eax
lea edx, [ecx*4 + 4]
push edx
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebx + 0x1f8]
mov esi, dword [ebx + 0x1f0]
mov edi, eax
mov dword [esp + 0x10], eax
lea ecx, [ecx*4 + 4]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x1f0]
push eax
call sub.MFC42.DLL_operatordelete
mov edx, dword [ebx + 0x200]
mov eax, dword [ebx + 0x1f8]
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
add esp, 8
add eax, edx
mov dword [ebx + 0x1f0], ecx
mov dword [ebx + 0x1f8], eax
mov eax, dword [ebx + 0x1f4]
mov ecx, dword [ebx + 0x1f0]
mov dword [ecx + eax*4], esi
mov eax, dword [ebx + 0x1f4]
inc eax
mov dword [ebx + 0x1f4], eax
mov eax, dword [ebx]
cmp edi, dword [eax + 8]
jge 0x4d6406
test edi, edi
jl 0x4d6406
mov edx, dword [eax + 4]
mov eax, dword [edx + edi*4]
jmp 0x4d6408
xor eax, eax
mov ecx, dword [eax]
test ecx, ecx
je 0x4d6443
mov eax, dword [ecx]
push 0
call dword [eax + 0x10]
test eax, eax
je 0x4d6443
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x90]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x18]
mov edx, dword [ebx + 0x1f4]
lea ecx, [esp + 0x88]
push 0xa
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__itoa]
mov eax, dword [ebx + 0x1c8]
mov ecx, dword [ebx + 0x1f4]
add esp, 0xc
inc eax
cmp ecx, eax
jne 0x4d6481
mov ecx, dword [ebp + 8]
push 0
push 0
push 0x404
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
push 0x3c
call sub.MFC42.DLL_operatornew
add esp, 4
test eax, eax
je 0x4d64b1
mov dl, byte [esp + 0x53]
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov esi, eax
mov byte [eax + 0x28], dl
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x34], ecx
mov dword [eax + 0x38], ecx
mov dword [esp + 0xc], esi
jmp 0x4d64b9
xor esi, esi
xor ecx, ecx
mov dword [esp + 0xc], esi
mov eax, dword [ebx]
cmp edi, dword [eax + 8]
jge 0x4d64cc
cmp edi, ecx
jl 0x4d64cc
mov eax, dword [eax + 4]
mov eax, dword [eax + edi*4]
jmp 0x4d64ce
xor eax, eax
mov edx, dword [esp + 0x10]
mov dword [esi], eax
mov dword [esi + 4], edx
mov eax, dword [ebx + 0x1b4]
cmp eax, ecx
jbe 0x4d6715
mov al, byte [ebx + 0x8a]
test al, al
je 0x4d6715
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x7c], ecx
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 dword [esp + 0x84], eax
lea eax, [ebx + 0x1ac]
mov dword [esp + 0x80], edx
mov ecx, dword [ecx]
mov dword [esp + 0x1c], eax
mov edx, dword [eax + 8]
lea edi, [esi + 0x28]
mov eax, edx
cmp ecx, eax
mov dword [esp + 0x44], eax
jae 0x4d6541
mov eax, ecx
mov dword [esp + 0x44], eax
cmp edi, dword [esp + 0x1c]
jne 0x4d65d8
mov dword [esp + 0x1c], ecx
mov ecx, dword [edi + 8]
cmp ecx, eax
jae 0x4d655c
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xran_void_]
mov ecx, edi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Split_void_]
mov eax, dword [edi + 8]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x1c]
sub eax, edx
cmp eax, ecx
jae 0x4d6579
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jbe 0x4d65c7
mov edx, dword [edi + 4]
mov ecx, dword [esp + 0x44]
add ecx, edx
mov edx, dword [esp + 0x1c]
sub eax, edx
add edx, ecx
push eax
push edx
push ecx
call dword [sym.imp.MSVCRT.dll_memmove]
mov eax, dword [edi + 8]
mov edx, dword [esp + 0x28]
add esp, 0xc
sub eax, edx
mov ecx, edi
mov dword [esp + 0x1c], eax
push 0
push 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 0x4d65c7
mov eax, dword [esp + 0x1c]
mov ecx, edi
push eax
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_]
push 0
push 0
mov ecx, edi
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__::erase_unsigned_int__unsigned_int_]
jmp 0x4d667d
test eax, eax
jbe 0x4d662e
cmp eax, edx
jne 0x4d662e
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 4]
test eax, eax
jne 0x4d65f0
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]
cmp byte [eax - 1], 0xfe
jae 0x4d662e
push 1
mov ecx, edi
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 [ebx + 0x1b0]
test eax, eax
jne 0x4d660f
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 dword [edi + 4], eax
mov edx, dword [ebx + 0x1b4]
mov dword [edi + 8], edx
mov ecx, dword [ebx + 0x1b8]
mov dword [edi + 0xc], ecx
mov cl, byte [eax - 1]
inc cl
mov byte [eax - 1], cl
jmp 0x4d667d
mov edx, dword [esp + 0x44]
push 1
push edx
mov ecx, edi
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 0x4d667d
mov eax, dword [ebx + 0x1b0]
test eax, eax
jne 0x4d6650
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 [esp + 0x44]
mov esi, eax
mov eax, dword [esp + 0xc]
mov edx, ecx
add eax, 0x28
shr ecx, 2
mov edi, dword [eax + 4]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
push ecx
mov ecx, eax
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_]
mov esi, dword [esp + 0xc]
mov eax, dword [ebx + 4]
test eax, eax
je 0x4d669b
mov ecx, dword [esp + 0x18]
mov edx, dword [eax + 8]
cmp ecx, edx
jge 0x4d669b
test ecx, ecx
jl 0x4d669b
mov edx, dword [eax + 4]
mov eax, dword [edx + ecx*4]
jmp 0x4d669d
xor eax, eax
mov ecx, dword [esi]
push eax
mov eax, dword [esp + 0x14]
push 0
push eax
lea eax, [esi + 0x28]
push ecx
push eax
mov ecx, ebx
call fcn.004d5450
mov edx, dword [ebx + 0x210]
mov eax, dword [ebx + 0x38]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov al, byte [ebx + 0x142]
xor edi, edi
test al, al
jne 0x4d66d0
cmp al, 1
jne 0x4d66d9
mov edi, 1
cmp al, 2
jne 0x4d66e2
mov edi, 2
mov eax, dword [esi + 0x2c]
or edi, 0x810
test eax, eax
jne 0x4d66f4
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, edi
lea edx, [esp + 0x78]
or ch, 4
push ecx
push edx
push 0xffffffffffffffff
push eax
mov eax, dword [ebx + 0x38]
push eax
call dword [sym.imp.USER32.dll_DrawTextA]
or edi, 0x8000
mov dword [esi + 0x38], edi
lea edi, [ebx + 0x14]
push edi
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x4d6798
mov edx, dword [edi + 8]
mov eax, dword [edi]
mov dword [esp + 0x5c], edx
mov edx, dword [edi + 0xc]
mov ecx, dword [edi + 4]
mov dword [esp + 0x60], edx
xor edx, edx
test eax, eax
setle dl
dec edx
and edx, eax
xor eax, eax
test ecx, ecx
setle al
dec eax
mov dword [esp + 0x54], edx
and eax, ecx
mov dword [esp + 0x58], eax
mov ecx, dword [esi + 4]
push ecx
mov ecx, dword [esi]
call fcn.004e0500
cmp dword [esp + 0x5c], eax
jl 0x4d6772
mov edx, dword [esi + 4]
mov ecx, dword [esi]
push edx
call fcn.004e0500
mov dword [esp + 0x5c], eax
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push eax
call fcn.004e05b0
mov ecx, dword [esp + 0x60]
cmp ecx, eax
jl 0x4d67c3
mov ecx, dword [esi + 4]
push ecx
mov ecx, dword [esi]
call fcn.004e05b0
mov ecx, eax
mov dword [esp + 0x60], ecx
jmp 0x4d67c3
mov edx, dword [esi + 4]
mov ecx, dword [esi]
push edx
call fcn.004e05b0
mov ecx, dword [esi]
push eax
mov eax, dword [esi + 4]
push eax
call fcn.004e0500
push eax
push 0
lea ecx, [esp + 0x60]
push 0
push ecx
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, dword [esp + 0x60]
mov edi, dword [esp + 0x58]
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x54]
sub ecx, edi
mov edi, ecx
mov cl, byte [ebx + 0x6b]
sub eax, edx
cmp cl, 1
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], edi
jne 0x4d67f2
mov edx, dword [esp + 0x3c]
mov dword [esi + 0x10], edx
mov eax, dword [esp + 0x40]
jmp 0x4d6869
test cl, cl
jne 0x4d6845
mov ecx, dword [ebx + 0x1e4]
mov edx, dword [ebx + 0x1dc]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fmul qword [ebx + 0x28]
call sub.MSVCRT.dll__ftol
mov dword [esi + 0x10], eax
mov eax, dword [ebx + 0x1e8]
mov ecx, dword [ebx + 0x1e0]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fmul qword [ebx + 0x28]
call sub.MSVCRT.dll__ftol
jmp 0x4d6869
cmp cl, 2
jne 0x4d686c
fild dword [ebx + 0x1dc]
fmul dword [ebx + 0x74]
call sub.MSVCRT.dll__ftol
mov dword [esi + 0x10], eax
fild dword [ebx + 0x1e0]
fmul dword [ebx + 0x78]
call sub.MSVCRT.dll__ftol
mov dword [esi + 0x14], eax
mov al, byte [ebx + 0x6c]
test al, al
je 0x4d68bc
fild dword [esp + 0x68]
fild dword [esi + 0x10]
fdiv st(1)
fstp qword [esp + 0x1c]
fild dword [esp + 0x6c]
fst qword [esp + 0x44]
fidivr dword [esi + 0x14]
fld qword [esp + 0x1c]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x4d68ae
fstp st(0)
fstp st(0)
fld qword [esp + 0x44]
fmul qword [esp + 0x1c]
call sub.MSVCRT.dll__ftol
mov dword [esi + 0x14], eax
jmp 0x4d68bc
fxch st(1)
fmul st(1)
call sub.MSVCRT.dll__ftol
fstp st(0)
mov dword [esi + 0x10], eax
movsx eax, byte [ebx + 0x6a]
cdq
mov ecx, 3
idiv ecx
sub edx, 0
je 0x4d68f7
dec edx
je 0x4d68e1
dec edx
jne 0x4d68fe
mov edx, dword [esp + 0x34]
mov eax, dword [esi + 0x10]
sub edx, eax
mov dword [esi + 8], edx
jmp 0x4d68fe
mov eax, dword [esp + 0x3c]
mov ecx, dword [esi + 0x10]
sub eax, ecx
mov ecx, dword [esp + 0x2c]
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x4d68fb
mov eax, dword [esp + 0x2c]
mov dword [esi + 8], eax
movsx ecx, byte [ebx + 0x6a]
mov eax, 0x55555556
imul ecx
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
sub edx, 0
je 0x4d693f
dec edx
je 0x4d6929
dec edx
jne 0x4d6946
mov edx, dword [esp + 0x38]
mov eax, dword [esi + 0x14]
sub edx, eax
mov dword [esi + 0xc], edx
jmp 0x4d6946
mov eax, dword [esp + 0x40]
mov ecx, dword [esi + 0x14]
sub eax, ecx
mov ecx, dword [esp + 0x30]
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x4d6943
mov eax, dword [esp + 0x30]
mov dword [esi + 0xc], eax
mov eax, dword [ebx + 0x1b4]
test eax, eax
jbe 0x4d6980
mov al, byte [ebx + 0x8a]
test al, al
je 0x4d6980
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x2c]
add edx, eax
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], edx
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x2c]
add ecx, eax
mov dword [esi + 0x20], ecx
mov edx, dword [esp + 0x38]
mov dword [esi + 0x24], edx
test esi, esi
je 0x4d6a09
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
inc ecx
cmp edx, ecx
jne 0x4d69f9
mov esi, eax
mov edx, dword [esi + 0x14]
mov edi, dword [esi + 0xc]
add edx, edi
lea eax, [edx*4 + 4]
push eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [esi + 0xc]
mov esi, dword [esi + 4]
mov edi, eax
mov dword [esp + 0x20], eax
lea ecx, [ecx*4 + 4]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 4]
push eax
call sub.MFC42.DLL_operatordelete
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x24]
add esp, 8
add eax, edx
mov dword [esi + 4], ecx
mov dword [esi + 0xc], eax
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
mov dword [edx + ecx*4], esi
mov ecx, dword [eax + 8]
inc ecx
mov dword [eax + 8], ecx
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x64]
inc esi
mov dword [esp + 0x10], esi
call fcn.004e1400
mov edi, dword [esp + 0x18]
cmp esi, eax
jl 0x4d62dc
mov eax, dword [ebx]
inc edi
mov dword [esp + 0x18], edi
cmp edi, dword [eax + 8]
jl 0x4d62a1
mov ecx, dword [esp + 0x190]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4