Function at 0x505be0
Capabilities:
Check os version
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x51a632
mov eax, dword fs:[0]
push eax
sub esp, 0x188
mov eax, dword [0x55609c]
xor eax, esp
mov dword [esp + 0x180], eax
push ebx
push esi
push edi
mov eax, dword [0x55609c]
xor eax, esp
push eax
lea eax, [esp + 0x198]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov ebx, edx
mov edx, dword [ebp + 0xc]
mov edi, dword [ebx + 0xac]
sub edi, dword [ebx + 0xa8]
mov dword [esp + 0x24], eax
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 8]
mov esi, edx
sub esi, eax
cmp edi, esi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edi
je 0x506488
cmp dword [ebx + 0x98], 3
mov dword [ebx + 0xa8], eax
mov dword [ebx + 0xac], edx
jne 0x505c8d
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
mov byte [edx], 1
mov edx, dword [esp + 0x1c]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov eax, ecx
jmp 0x5067c4
mov esi, dword [ebx]
add esi, eax
mov eax, dword [ebx + 0x98]
test eax, eax
jne 0x505f8a
cmp esi, edx
mov eax, esi
je 0x505cb1
cmp byte [eax], 0xa
je 0x505cd5
add eax, 1
cmp eax, edx
jne 0x505ca5
mov edx, dword [ebx + 0xac]
sub edx, dword [ebx + 0xa8]
mov eax, dword [esp + 0x1c]
sub edx, edi
add eax, edx
mov edx, dword [esp + 0x18]
mov dword [ecx + 4], eax
mov dword [ecx], edx
mov eax, ecx
jmp 0x5067c4
cmp eax, edx
je 0x505cb1
cmp eax, esi
je 0x506477
cmp byte [eax - 1], 0xd
lea ecx, [eax - 1]
mov dword [esp + 0x14], eax
jne 0x505cf2
mov dword [esp + 0x14], ecx
lea ecx, [eax + 1]
mov eax, ecx
sub eax, esi
cdq
add dword [ebx], eax
mov eax, ecx
mov dword [esp + 0x50], ecx
adc dword [ebx + 4], edx
sub eax, dword [esp + 0x48]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x14]
sub eax, dword [ebx + 0xa8]
push ecx
add dword [esp + 0x20], eax
mov dword [esp + 0x24], esi
push 0x20
lea esi, [esp + 0x28]
lea edi, [esp + 0x144]
call fcn.0043fd40
add esp, 8
lea esi, [ebx + 0x44]
push eax
mov ecx, esi
mov dword [esp + 0x1a4], 0
call dword [0x52e398]
or edi, 0xffffffff
lea ecx, [esp + 0x13c]
mov dword [esp + 0x1a0], edi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push 5
push 0
lea edx, [esp + 0x144]
push edx
mov ecx, esi
call dword [sym.imp.MSVCP80.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_]
push str.HTTP_
push eax
mov dword [esp + 0x1a8], 1
call dword [sym.imp.MSVCP80.dll_bool___cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 8
lea ecx, [esp + 0x13c]
mov byte [esp + 0x2b], al
mov dword [esp + 0x1a0], edi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp byte [esp + 0x2b], 0
je 0x505e3d
mov eax, dword [esp + 0x14]
push eax
push 0x20
lea esi, [esp + 0x28]
lea edi, [esp + 0x144]
call fcn.0043fd40
add esp, 8
cmp dword [eax + 0x18], 0x10
jb 0x505dd9
mov eax, dword [eax + 4]
jmp 0x505ddc
add eax, 4
push eax
call dword [sym.imp.MSVCR80.dll_atoi]
add esp, 4
lea ecx, [esp + 0x13c]
mov dword [ebx + 8], eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x14]
push ecx
push 0xd
lea esi, [esp + 0x28]
lea edi, [esp + 0x144]
call fcn.0043fd40
add esp, 8
push eax
lea ecx, [ebx + 0x60]
mov dword [esp + 0x1a4], 2
call dword [0x52e398]
mov ecx, edi
mov dword [esp + 0x1a0], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x505f6c
lea edi, [ebx + 0xc]
lea esi, [ebx + 0x44]
push esi
mov ecx, edi
call dword [0x52e398]
lea edx, [esp + 0xc4]
push edx
mov ecx, edi
call dword [sym.imp.MSVCP80.dll_public:_class_std::_String_iterator_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::begin_void_]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
lea eax, [esp + 0x9c]
mov dword [esp + 0x5c], ecx
push eax
mov ecx, edi
mov dword [esp + 0x64], edx
call dword [sym.imp.MSVCP80.dll_public:_class_std::_String_iterator_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::end_void_]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
lea eax, [esp + 0xb4]
mov dword [esp + 0x6c], ecx
push eax
mov ecx, edi
mov dword [esp + 0x74], edx
call dword [sym.imp.MSVCP80.dll_public:_class_std::_String_iterator_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::begin_void_]
mov ecx, dword [eax]
mov edx, dword [esp + 0x60]
mov eax, dword [eax + 4]
push edx
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x3c]
mov byte [esp + 0x60], 0
mov edx, dword [esp + 0x60]
push edx
mov edx, dword [esp + 0x7c]
push ecx
push edx
lea ecx, [esp + 0xb8]
push ecx
mov edi, eax
call fcn.00507c10
xor eax, eax
add esp, 0x18
mov ecx, esi
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x84], eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::clear_void_]
mov edx, dword [esp + 0x14]
push edx
push 0x20
lea esi, [esp + 0x28]
lea edi, [esp + 0x144]
call fcn.0043fd40
add esp, 8
push eax
lea ecx, [ebx + 0x28]
mov dword [esp + 0x1a4], 3
call dword [0x52e398]
mov ecx, edi
mov dword [esp + 0x1a0], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [esp + 0x14]
push eax
push 0x20
lea edi, [esp + 0x144]
call fcn.0043fd40
add esp, 8
push eax
lea ecx, [ebx + 0x44]
mov dword [esp + 0x1a4], 4
call dword [0x52e398]
mov ecx, edi
mov dword [esp + 0x1a0], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov dword [ebx + 8], 0
mov eax, dword [esp + 0x50]
sub eax, dword [ebp + 8]
mov esi, dword [esp + 0x2c]
mov edx, dword [ebp + 0xc]
mov dword [ebx + 0x98], 1
mov dword [esp + 0x48], eax
jmp 0x505f93
cmp eax, 1
jne 0x5064d8
cmp esi, edx
mov edi, esi
je 0x505fac
lea esp, [esp]
cmp byte [edi], 0xa
je 0x505fac
add edi, 1
cmp edi, edx
jne 0x505fa0
lea ecx, [esp + 0x158]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov dword [esp + 0x1a0], 5
cmp edi, dword [ebp + 0xc]
je 0x5064b2
cmp dword [ebx + 0x98], 1
jne 0x5064b2
cmp esi, edi
mov eax, edi
je 0x505feb
cmp byte [edi - 1], 0xd
lea ecx, [edi - 1]
jne 0x505feb
mov eax, ecx
push eax
push esi
lea ecx, [esp + 0x160]
call dword [sym.imp.MSVCP80.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___char_const__]
add edi, 1
mov eax, edi
sub eax, esi
cdq
add dword [ebx], eax
push 0
push 0x3a
adc dword [ebx + 4], edx
lea ecx, [esp + 0x160]
mov dword [esp + 0x28], edi
mov dword [esp + 0x34], edi
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char__unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov esi, eax
cmp esi, dword [ecx]
je 0x50643b
push esi
push 0
lea edx, [esp + 0x144]
push edx
lea ecx, [esp + 0x164]
call dword [sym.imp.MSVCP80.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 + 0xac]
push eax
lea ecx, [esp + 0x140]
mov byte [esp + 0x1a4], 6
call dword [sym.imp.MSVCP80.dll_public:_class_std::_String_iterator_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::begin_void_]
mov ecx, dword [eax + 4]
mov edi, dword [eax]
lea edx, [esp + 0x8c]
mov dword [esp + 0x88], ecx
push edx
lea ecx, [esp + 0x140]
call dword [sym.imp.MSVCP80.dll_public:_class_std::_String_iterator_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::end_void_]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
lea eax, [esp + 0xbc]
mov dword [esp + 0x64], ecx
push eax
lea ecx, [esp + 0x140]
mov dword [esp + 0x6c], edx
call dword [sym.imp.MSVCP80.dll_public:_class_std::_String_iterator_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::begin_void_]
mov ecx, dword [eax]
mov edx, dword [esp + 0x88]
mov eax, dword [eax + 4]
push edx
push edi
mov dword [esp + 0x58], ecx
mov byte [esp + 0x3c], 0
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x74]
push edx
push ecx
lea edx, [esp + 0xa8]
push edx
mov edi, eax
call fcn.00507c10
mov ecx, dword [esp + 0x184]
add esi, 1
add esp, 0x18
cmp esi, ecx
jae 0x506154
jbe 0x5060fd
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x16c]
mov eax, dword [esp + 0x15c]
mov edi, 0x10
cmp dword [esp + 0x170], edi
jae 0x506119
lea eax, [esp + 0x15c]
cmp byte [eax + esi], 0x20
je 0x50614d
cmp esi, ecx
jbe 0x506130
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x16c]
cmp dword [esp + 0x170], edi
mov eax, dword [esp + 0x15c]
jae 0x506147
lea eax, [esp + 0x15c]
cmp byte [eax + esi], 9
jne 0x506154
add esi, 1
cmp esi, ecx
jb 0x5060fd
mov eax, dword [sym.imp.MSVCP80.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 esi
lea edx, [esp + 0x17c]
push edx
lea ecx, [esp + 0x164]
call dword [sym.imp.MSVCP80.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_]
sub esp, 0x1c
mov byte [esp + 0x1bc], 7
lea eax, [esp + 0x190]
mov ecx, esp
mov dword [esp + 0x6c], esp
push eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_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__]
sub esp, 0x1c
lea edx, [esp + 0x174]
mov ecx, esp
mov dword [esp + 0x4c], esp
push edx
mov byte [esp + 0x1dc], 8
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_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__]
lea esi, [esp + 0x13c]
mov byte [esp + 0x1d8], 7
call fcn.00507a90
add esp, 0x38
mov esi, eax
push esi
lea ecx, [esp + 0xd0]
mov byte [esp + 0x1a4], 9
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_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__]
add esi, 0x1c
push esi
lea ecx, [esp + 0xec]
mov byte [esp + 0x1a4], 0xa
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_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__]
add ebx, 0x9c
push ebx
lea eax, [esp + 0xd0]
lea ebx, [esp + 0x78]
mov byte [esp + 0x1a4], 0xb
call fcn.005071b0
lea ecx, [esp + 0xe8]
mov byte [esp + 0x1a0], 0xc
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xcc]
mov byte [esp + 0x1a0], 9
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x120]
mov byte [esp + 0x1a0], 0xd
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x104]
mov byte [esp + 0x1a0], 7
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov esi, dword [sym.imp.MSVCP80.dll_bool___cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
lea eax, [esp + 0x13c]
push str.content_length
push eax
call esi
add esp, 8
test al, al
je 0x5062c2
cmp dword [esp + 0x18c], 0x10
mov eax, dword [esp + 0x178]
jae 0x50629f
lea eax, [esp + 0x178]
push 0xa
push 0
push eax
call dword [sym.imp.MSVCR80.dll__strtoi64]
mov ecx, dword [esp + 0x3c]
add esp, 0xc
mov dword [ecx + 0x80], eax
mov dword [ecx + 0x84], edx
jmp 0x5063e1
lea ecx, [esp + 0x13c]
push str.content_range
push ecx
call esi
add esp, 8
test al, al
je 0x50639f
cmp dword [esp + 0x18c], 0x10
mov edi, dword [esp + 0x178]
jae 0x5062f4
lea edi, [esp + 0x178]
mov eax, edi
mov ecx, str.bytes
call fcn.0044c710
test al, al
je 0x506307
add edi, 6
mov ebx, dword [sym.imp.MSVCR80.dll__strtoi64]
push 0xa
lea edx, [esp + 0x44]
push edx
push edi
call ebx
mov esi, dword [esp + 0x3c]
mov dword [esi + 0x88], eax
mov eax, dword [esp + 0x4c]
add esp, 0xc
cmp eax, edi
mov dword [esi + 0x8c], edx
je 0x50664b
cmp byte [eax], 0x2d
jne 0x50664b
lea edi, [eax + 1]
push 0xa
lea eax, [esp + 0x44]
push eax
push edi
call ebx
add esp, 0xc
cmp dword [esp + 0x40], edi
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], edx
je 0x50664b
mov edi, dword [esi + 0x88]
mov ecx, eax
mov eax, edx
mov edx, dword [esi + 0x8c]
cmp eax, edx
jl 0x50664b
jg 0x506387
cmp ecx, edi
jb 0x50664b
sub ecx, edi
sbb eax, edx
add ecx, 1
adc eax, 0
mov dword [esi + 0x80], ecx
mov dword [esi + 0x84], eax
jmp 0x5063e1
lea ecx, [esp + 0x13c]
push str.transfer_encoding
push ecx
call esi
add esp, 8
test al, al
je 0x5063e1
cmp dword [esp + 0x18c], 0x10
mov eax, dword [esp + 0x178]
jae 0x5063cd
lea eax, [esp + 0x178]
mov ecx, str.chunked
call fcn.0044c710
mov edx, dword [esp + 0x30]
mov byte [edx + 0xb4], al
mov eax, dword [esp + 0x20]
mov ecx, dword [ebp + 0xc]
cmp eax, ecx
je 0x5063fc
lea esp, [esp]
cmp byte [eax], 0xa
je 0x5063fc
add eax, 1
cmp eax, ecx
jne 0x5063f0
lea ecx, [esp + 0x174]
mov dword [esp + 0x20], eax
mov byte [esp + 0x1a0], 6
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x13c]
mov byte [esp + 0x1a0], 5
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x30]
jmp 0x505fc4
cmp dword [ebx + 8], 0x64
jne 0x50649c
lea ecx, [esp + 0x158]
mov dword [ebx + 0x98], 0
mov dword [esp + 0x1a0], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x44]
mov edi, dword [esp + 0x48]
mov edx, dword [ebp + 0xc]
jmp 0x505c91
mov eax, dword [esp + 0x24]
mov dword [ebx + 0x98], 3
mov byte [eax], 1
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov dword [ecx + 4], eax
mov dword [ecx], edx
mov eax, ecx
jmp 0x5067c4
mov ecx, dword [ebx]
mov esi, dword [esp + 0x2c]
mov dword [ebx + 0x98], 2
mov dword [ebx + 0xb0], ecx
sub edi, dword [esp + 0x48]
lea ecx, [esp + 0x158]
sub edi, dword [ebx + 0xa8]
add dword [esp + 0x1c], edi
mov dword [esp + 0x1a0], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp dword [ebx + 0x98], 2
jne 0x5067b3
mov edi, dword [ebp + 0xc]
sub edi, esi
cmp byte [ebx + 0xb4], 0
mov dword [esp + 0x14], edi
je 0x50671a
test byte [ebx + 0xd8], 1
jne 0x50671a
mov edx, dword [ebx + 0xc8]
and edx, dword [ebx + 0xcc]
cmp edx, 0xffffffff
jne 0x50652c
mov eax, dword [ebx + 0xb0]
cdq
mov dword [ebx + 0xc8], eax
mov dword [ebx + 0xcc], edx
mov ecx, dword [ebx + 0xcc]
mov eax, edi
cdq
add eax, dword [ebx]
adc edx, dword [ebx + 4]
cmp ecx, edx
jg 0x506704
jl 0x506552
mov edx, dword [ebx + 0xc8]
cmp edx, eax
ja 0x506704
cmp byte [ebx + 0xb5], 0
jne 0x506704
cmp dword [esp + 0x14], 0
jle 0x506773
mov ecx, dword [ebx]
mov eax, dword [ebx + 0xc8]
mov edx, dword [ebx + 4]
mov esi, dword [ebx + 0xcc]
sub eax, ecx
sbb esi, edx
js 0x506598
jg 0x506587
test eax, eax
jbe 0x506598
add ecx, eax
adc edx, esi
add dword [esp + 0x18], eax
sub dword [esp + 0x14], eax
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov eax, dword [ebx + 0xc8]
mov ecx, dword [ebp + 0xc]
add eax, dword [ebp + 8]
push ecx
push eax
push ebx
lea ecx, [esp + 0x30]
lea edx, [esp + 0x40]
call fcn.005067f0
test al, al
je 0x5066b6
mov esi, dword [esp + 0x38]
test esi, esi
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x34]
jl 0x50661b
jg 0x5065d2
test ecx, ecx
jbe 0x50661b
mov ecx, dword [esp + 0x34]
mov eax, edi
cdq
add eax, dword [ebx + 0xc8]
lea esi, [ebx + 0xb8]
adc edx, dword [ebx + 0xcc]
add ecx, eax
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x38]
adc eax, edx
lea ebx, [esp + 0x74]
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], eax
call fcn.0044aa00
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov eax, edi
cdq
add eax, ecx
adc edx, esi
add dword [ebx + 0xc8], eax
adc dword [ebx + 0xcc], edx
or ecx, esi
jne 0x506639
mov byte [ebx + 0xb5], 1
sub edi, dword [ebx + 0xd4]
mov dword [ebx + 0xd4], 0
jmp 0x5066c0
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov dword [esi + 0x98], 3
mov esi, dword [esp + 0x44]
mov byte [edx], 1
mov dword [esi + 4], ecx
lea ecx, [esp + 0x174]
mov dword [esi], eax
mov byte [esp + 0x1a0], 6
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x13c]
mov byte [esp + 0x1a0], 5
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x158]
mov dword [esp + 0x1a0], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, esi
jmp 0x5067c4
mov edi, dword [esp + 0x14]
add dword [ebx + 0xd4], edi
add dword [ebx + 0xd0], edi
mov eax, edi
cdq
add dword [ebx], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], edi
adc dword [ebx + 4], edx
add dword [esp + 0x1c], edi
mov ecx, dword [ebx + 0xcc]
sub eax, edi
mov dword [esp + 0x14], eax
cdq
add eax, dword [ebx]
adc edx, dword [ebx + 4]
cmp ecx, edx
jl 0x506552
jg 0x506704
mov edx, dword [ebx + 0xc8]
cmp edx, eax
jbe 0x506552
mov ecx, dword [esp + 0x14]
test ecx, ecx
jle 0x506773
mov eax, ecx
cdq
add dword [ebx], eax
adc dword [ebx + 4], edx
add dword [esp + 0x18], ecx
jmp 0x506773
mov eax, edi
cdq
mov esi, eax
mov eax, dword [ebx + 0xb0]
mov ecx, edx
cdq
sub esi, eax
mov eax, dword [ebx + 0x84]
sbb ecx, edx
add esi, dword [ebx]
adc ecx, dword [ebx + 4]
cmp ecx, eax
jl 0x506762
jg 0x506745
cmp esi, dword [ebx + 0x80]
jbe 0x506762
test eax, eax
jl 0x506762
jg 0x506754
cmp dword [ebx + 0x80], 0
jb 0x506762
mov edi, dword [ebx + 0x80]
sub edi, dword [ebx]
add edi, dword [ebx + 0xb0]
mov eax, edi
cdq
add eax, dword [ebx]
mov dword [esp + 0x18], edi
adc edx, dword [ebx + 4]
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov esi, dword [ebx + 0x84]
test esi, esi
mov edi, dword [ebx + 0x80]
jl 0x5067b3
jg 0x506789
test edi, edi
jb 0x5067b3
cmp byte [ebx + 0xb4], 0
jne 0x5067b3
mov eax, dword [ebx + 0xb0]
mov ecx, dword [ebx]
cdq
sub ecx, eax
mov eax, dword [ebx + 4]
sbb eax, edx
cmp eax, esi
jl 0x5067b3
jg 0x5067ac
cmp ecx, edi
jb 0x5067b3
mov byte [ebx + 0xb5], 1
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x198]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x180]
xor ecx, esp
call fcn.00515015
mov esp, ebp
pop ebp
ret 0xc