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

Disassembly:
push 0xffffffffffffffff
push 0x4385e9
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov eax, dword [0x447724]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov eax, dword [esp + 0x98]
mov ebp, dword [esp + 0x78]
mov dword [esp + 0x1c], eax
xor edi, edi
mov dword [esp + 0x70], edi
cmp dword [esp + 0x94], 0x10
mov eax, dword [esp + 0x80]
jae 0x407794
lea eax, [esp + 0x80]
mov ecx, dword [esp + 0x9c]
push ecx
push eax
push str.SetSpeedLimit__s__count_d_
mov eax, ebp
call fcn.00402190
add esp, 0xc
cmp dword [ebp + 0x48], edi
jne 0x4077ca
lea ecx, [esp + 0x7c]
mov dword [esp + 0x70], 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_]
xor eax, eax
jmp 0x4079df
lea edx, [esp + 0x14]
lea esi, [ebp + 0x54]
push edx
lea ebx, [esp + 0x80]
call fcn.00408030
mov eax, dword [esp + 0x14]
cmp eax, edi
mov ebx, dword [esi + 4]
je 0x4077ed
cmp eax, esi
je 0x4077f3
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [esp + 0x18], ebx
jne 0x40780f
push str.global
lea ecx, [esp + 0x80]
call dword [sym.imp.MSVCP80.dll_public:_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::compare_char_const__const]
test eax, eax
jne 0x4077b1
mov ecx, dword [esp + 0x9c]
test ecx, ecx
mov dword [esp + 0x24], edi
mov esi, edi
mov dword [esp + 0x30], edi
mov ebx, edi
jbe 0x407864
mov eax, dword [esp + 0x1c]
add eax, 4
mov edx, ecx
nop
mov ecx, dword [eax - 4]
add ecx, 0xffffffff
cmp ecx, 4
ja case.default.0x40783b
jmp dword [ecx*4 + 0x4079f8]
mov ecx, dword [eax]
mov dword [esp + 0x24], ecx
jmp case.default.0x40783b
mov edi, dword [eax]
jmp case.default.0x40783b
mov esi, dword [eax]
jmp case.default.0x40783b
mov ecx, dword [eax]
mov dword [esp + 0x30], ecx
jmp case.default.0x40783b
mov ebx, dword [eax]
add eax, 8
sub edx, 1
jne 0x407830
mov ecx, dword [esp + 0x14]
test ecx, ecx
mov edx, dword [ebp + 0x58]
lea eax, [ebp + 0x54]
mov dword [esp + 0x20], edx
je 0x40787a
cmp ecx, eax
je 0x407884
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x20]
je 0x4078cf
test ecx, ecx
jne 0x4078a0
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
cmp eax, dword [ecx + 4]
jne 0x4078af
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x30]
mov dword [eax + 0x78], ecx
mov dword [eax + 0x7c], edi
mov dword [eax + 0x80], esi
mov dword [eax + 0x84], edx
mov dword [eax + 0x88], ebx
push 0x30
lea eax, [esp + 0x3c]
push 0
push eax
call sub.MSVCR80.dll_memset
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x3c]
add esp, 0xc
shl esi, 0xa
shl eax, 0xa
mov dword [esp + 0x40], eax
push esi
shl edi, 0xa
shl ebx, 0xa
push str.uP2PUploadSpeed________:____d
mov eax, ebp
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], edi
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ecx
call fcn.00402190
mov edx, dword [esp + 0x44]
push edx
push str.uP2PDownloadSpeed______:____d
mov eax, ebp
call fcn.00402190
mov eax, dword [esp + 0x50]
push eax
push str.uHttpDownloadSpeed_____:____d
mov eax, ebp
call fcn.00402190
mov ecx, dword [esp + 0x68]
push ecx
push str.uMinDownloadSpeed______:____d
mov eax, ebp
call fcn.00402190
mov edx, dword [esp + 0x74]
push edx
push str.uUploadMaxPercent______:____d
mov eax, ebp
call fcn.00402190
mov eax, dword [esp + 0xa8]
add esp, 0x28
cmp dword [esp + 0x94], 0x10
mov edi, 4
lea esi, [esp + 0x40]
mov ebx, 0x193
jae 0x407982
lea eax, [esp + 0x80]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], 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_char_const__]
mov ecx, esi
push ebp
mov edx, edi
mov esi, ebx
call fcn.00407a60
cmp dword [esp + 0x94], 0x10
mov eax, dword [esp + 0x80]
jae 0x4079b6
lea eax, [esp + 0x80]
mov ebp, dword [ebp + 0x48]
mov ecx, dword [ebp]
lea edx, [esp + 0x38]
push edx
push eax
mov eax, dword [ecx + 0x24]
push ebp
call eax
lea ecx, [esp + 0x7c]
mov dword [esp + 0x70], 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, 1
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 0x28