Function at 0x457af0
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5259e6
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x55609c]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
push edi
mov eax, dword [0x55609c]
xor eax, esp
push eax
lea eax, [esp + 0x228]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, ecx
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x320]
test eax, eax
mov dword [esp + 0x1c], ebx
je 0x458704
mov ecx, dword [ebx + 0x324]
sub ecx, eax
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
je 0x458704
mov al, byte [ebx + 0x52c]
test al, 1
je 0x457b7f
mov dword [ebp + 8], 3
jmp 0x457bb0
mov ecx, dword [ebp + 8]
cmp ecx, 3
je 0x457b8f
test al, 4
je 0x458704
test ecx, ecx
jne 0x457bb0
mov ecx, ebx
call fcn.00419d00
test al, al
je 0x457bb0
mov ecx, ebx
call fcn.00419cb0
test al, al
jne 0x457bb0
mov dword [ebp + 8], 4
lea edx, [esp + 0xfc]
push edx
call fcn.0044e230
mov dword [esp + 0x230], 0
test byte [ebx + 0x545], 0x40
je 0x457be8
mov eax, dword [ebx + 0x2e8]
cmp byte [eax + 0x2b2], 0
mov byte [esp + 0x1f1], 1
jne 0x457bf0
mov byte [esp + 0x1f1], 0
mov ecx, dword [ebx + 0xa8]
mov edx, dword [ecx + 0x140]
mov dword [esp + 0x100], edx
mov eax, dword [ecx + 0x144]
mov dword [esp + 0x104], eax
mov edx, dword [ecx + 0x148]
mov dword [esp + 0x108], edx
mov eax, dword [ecx + 0x14c]
mov dword [esp + 0x10c], eax
mov edx, dword [ecx + 0x150]
mov eax, dword [ebx + 0x2e8]
mov esi, dword [ebx + 0x4d8]
add eax, 0xa14
mov dword [esp + 0x110], edx
mov edx, dword [eax]
mov dword [esp + 0x114], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x118], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x11c], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x120], edx
mov eax, dword [eax + 0x10]
mov edx, dword [ebx + 0x14c]
mov dword [esp + 0x124], eax
mov eax, dword [ebx + 0x148]
xor edi, edi
sub eax, esi
mov dword [esp + 0x12c], eax
mov eax, dword [ebx + 0x13c]
sbb edx, edi
mov dword [esp + 0x130], edx
cdq
mov dword [esp + 0x1f4], eax
mov eax, dword [ebx + 0x10c]
mov dword [esp + 0x1f8], edx
cdq
mov dword [esp + 0x1fc], eax
mov eax, dword [ebx + 0x11c]
mov dword [esp + 0x200], edx
mov edx, dword [ebx + 0x118]
mov dword [esp + 0x138], eax
xor eax, eax
mov dword [esp + 0x134], edx
mov dword [esp + 0x144], esi
mov dword [esp + 0x148], edi
cmp dword [ecx + 0x94], eax
jg 0x457cfc
or esi, 0xffffffff
or edi, esi
jmp 0x457d14
mov esi, dword [ecx + 0x88]
mov edi, dword [ecx + 0x8c]
push ebx
call fcn.0045a0d0
sub esi, eax
sbb edi, edx
xor eax, eax
mov dword [esp + 0x13c], esi
and esi, edi
cmp esi, 0xffffffff
mov dword [esp + 0x140], edi
jne 0x457d3b
mov dword [esp + 0x13c], 0x4000
mov dword [esp + 0x140], eax
mov ecx, dword [ebx + 0x2e8]
cmp byte [ecx + 0x22d], 0
jne 0x457d5e
mov edx, dword [ebx + 0x4dc]
sub dword [esp + 0x12c], edx
sbb dword [esp + 0x130], eax
cmp dword [esp + 0x130], eax
jg 0x457d80
jl 0x457d72
cmp dword [esp + 0x12c], eax
jae 0x457d80
mov dword [esp + 0x12c], eax
mov dword [esp + 0x130], eax
mov ecx, dword [ebp + 8]
mov dword [esp + 0x158], ecx
mov dword [esp + 0x14], eax
call fcn.005147f0
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x2e8]
cmp byte [eax + 0x23a], 0
jne 0x457f41
lea esi, [eax + 0xa4c]
xor eax, eax
mov dword [esp + 0xe0], eax
mov dword [esp + 0xe4], eax
lea edx, [esp + 0xe0]
mov dword [esp + 0xe8], eax
mov dword [esp + 0xec], eax
mov dword [esp + 0xf0], eax
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf8], eax
mov word [esp + 0xe2], ax
mov dword [esp + 0xe4], eax
push edx
lea eax, [esp + 0x208]
mov ecx, 7
lea edi, [esp + 0x208]
push eax
rep movsd dword es:[edi], dword [esi]
mov word [esp + 0xe8], 2
call fcn.004397b0
add esp, 8
test al, al
jne 0x457e71
lea ecx, [esp + 0x204]
push ecx
lea esi, [esp + 0xe4]
call fcn.00439710
lea ecx, [esp + 0x14]
lea edx, [esp + 0x5c]
mov eax, esi
call fcn.00438fe0
push eax
lea ecx, [esp + 0x1a0]
mov byte [esp + 0x234], 1
call dword [0x52e398]
lea ecx, [esp + 0x5c]
mov byte [esp + 0x230], 0
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 [ebx + 0x2e8]
lea esi, [eax + 0xa68]
xor eax, eax
mov dword [esp + 0xe0], eax
mov dword [esp + 0xe4], eax
lea edx, [esp + 0xe0]
mov dword [esp + 0xe8], eax
mov dword [esp + 0xec], eax
mov dword [esp + 0xf0], eax
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf8], eax
mov word [esp + 0xe2], ax
mov dword [esp + 0xe4], eax
push edx
lea eax, [esp + 0x208]
mov ecx, 7
lea edi, [esp + 0x208]
push eax
rep movsd dword es:[edi], dword [esi]
mov word [esp + 0xe8], 2
call fcn.004397b0
add esp, 8
test al, al
jne 0x457f41
lea ecx, [esp + 0x204]
push ecx
lea esi, [esp + 0x60]
call fcn.00439710
lea ecx, [esp + 0x14]
lea edx, [esp + 0xe0]
mov eax, esi
call fcn.00438fe0
push eax
lea ecx, [esp + 0x1bc]
mov byte [esp + 0x234], 2
call dword [0x52e398]
lea ecx, [esp + 0xe0]
mov byte [esp + 0x230], 0
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 [esp + 0x158], 3
jne 0x457f58
mov dword [esp + 0x198], 0
jmp 0x457f6b
mov edx, dword [ebx + 0x2e8]
mov eax, dword [edx + 0x100]
mov dword [esp + 0x198], eax
mov ecx, dword [ebx + 0x2e8]
call fcn.004880b0
mov ecx, dword [ebx + 0x2e8]
mov word [esp + 0x154], ax
mov edx, dword [ecx + 0xa28]
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x198], edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
xor esi, esi
mov dword [esp + 0x20], closesocket
mov byte [esp + 0x12], 0
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov eax, dword [ebx + 0x320]
test eax, eax
je 0x457fd8
mov ecx, dword [ebx + 0x324]
sub ecx, eax
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jge 0x4586dc
mov eax, dword [ebx + 0x320]
test eax, eax
je 0x458009
mov ecx, dword [ebx + 0x324]
sub ecx, eax
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x45800f
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, dword [ebx + 0x320]
add edi, dword [esp + 0x28]
lea eax, [ebx + 0x340]
cmp dword [edi + 0x30], 0
mov dword [esp + 0x2c], edi
je 0x45802c
lea eax, [edi + 0x1c]
push eax
lea ecx, [esp + 0x17c]
call dword [0x52e398]
mov esi, dword [ebx + 0x2e8]
mov cl, byte [esi + 0x1c2]
test cl, cl
je 0x458082
cmp byte [esi + 0x1c1], 0
jne 0x458082
mov dl, byte [esp + 0x12]
test dl, dl
je 0x458086
movzx eax, byte [edi + 0x70]
cmp eax, dword [esp + 0x20]
jg 0x458086
cmp dword [esp + 0x20], 0x7fffffff
je 0x458086
add dword [esp + 0x24], 1
add dword [esp + 0x28], 0x78
mov esi, dword [esp + 0x24]
jmp 0x457fb3
mov dl, byte [esp + 0x12]
movzx eax, byte [edi + 0x70]
cmp eax, dword [esp + 0x20]
jle 0x45809c
test dl, dl
je 0x4580b7
test cl, cl
je 0x4586dc
test dl, dl
je 0x4580b7
cmp dword [esp + 0x20], eax
jne 0x4580b7
cmp byte [esi + 0x1c1], 0
jne 0x4580b7
test cl, cl
je 0x4586dc
mov cl, byte [edi + 0x72]
and cl, 0x7f
mov byte [esp + 0x13], cl
jne 0x4580cc
mov dword [esp + 0x20], eax
mov byte [esp + 0x12], 0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
push edx
mov ecx, ebx
call fcn.00419cb0
push eax
mov eax, edi
call fcn.00428d30
test al, al
jne 0x45810b
cmp byte [esp + 0x13], al
jne 0x4586c5
add dword [esp + 0x24], 1
add dword [esp + 0x28], 0x78
mov esi, dword [esp + 0x24]
mov byte [esp + 0x12], 1
jmp 0x457fb3
push edi
lea ecx, [esp + 0x160]
call dword [0x52e398]
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esp + 0x158], eax
jne 0x458155
mov al, byte [edi + 0x73]
test al, 0x20
jne 0x45813b
mov dword [esp + 0x158], 2
jmp 0x458155
test al, 0x40
jne 0x458155
mov ecx, ebx
call fcn.00419cb0
test al, al
je 0x458155
mov dword [esp + 0x158], 1
mov esi, dword [esp + 0x30]
mov ecx, esi
call fcn.004d21d0
test al, al
jne 0x4581ab
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
mov dword [esp + 0x1d4], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x1d8], ecx
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x1dc], edx
mov edx, dword [esi + 0x14]
mov dword [esp + 0x1e0], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x1e4], ecx
mov dword [esp + 0x1e8], edx
mov dword [esp + 0x1ec], eax
jmp 0x458225
mov eax, dword [ebx + 0x2e8]
add eax, 0xa30
push eax
lea esi, [esp + 0xe4]
call fcn.00439710
mov ecx, dword [esp + 0xe0]
mov edx, dword [esp + 0xe4]
mov eax, dword [esp + 0xe8]
mov dword [esp + 0x1d4], ecx
mov ecx, dword [esp + 0xec]
mov dword [esp + 0x1d8], edx
mov edx, dword [esp + 0xf0]
mov dword [esp + 0x1dc], eax
mov eax, dword [esp + 0xf4]
mov dword [esp + 0x1e0], ecx
mov ecx, dword [esp + 0xf8]
mov dword [esp + 0x1e4], edx
mov dword [esp + 0x1e8], eax
mov dword [esp + 0x1ec], ecx
mov edx, dword [ebx + 0x2e8]
cmp byte [edx + 0x23a], 0
je 0x4583d1
push 0
push 0x3a
lea ecx, [esp + 0x164]
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]
push eax
push 0
lea eax, [esp + 0xe8]
push eax
lea ecx, [esp + 0x168]
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_]
mov byte [esp + 0x230], 3
mov ecx, dword [ebx + 0x2e8]
mov esi, dword [ecx + 0xbb0]
lea edx, [esp + 0xe0]
push str.http
push edx
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
test al, al
jne 0x4582ad
lea eax, [esp + 0xe0]
push str.https
push eax
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
test al, al
je 0x45838b
test esi, esi
jne 0x45838b
push esi
push 0x23c34600
call fcn.0047d900
mov ecx, dword [esp + 0x1c]
add esp, 8
add ecx, eax
mov eax, dword [esp + 0x18]
adc eax, edx
mov dword [edi + 0x60], ecx
mov dword [edi + 0x64], eax
mov esi, dword [ebx + 0x2e8]
add esi, 0x380
call fcn.00470870
test al, al
je 0x458363
lea ecx, [esp + 0x34]
push ecx
mov ecx, ebx
call fcn.004644a0
lea edx, [esp + 0x15c]
push edx
push eax
lea eax, [esp + 0x64]
push eax
mov byte [esp + 0x23c], 4
call fcn.00451890
mov byte [esp + 0x230], 5
mov ecx, dword [ebx + 0x2e8]
push eax
add ecx, 0x380
push ecx
call fcn.004cd100
lea edx, [esp + 0x5c]
push edx
mov byte [esp + 0x234], 4
call fcn.00451a80
mov byte [esp + 0x230], 3
mov eax, dword [esp + 0x38]
test eax, eax
je 0x458363
mov ecx, eax
or edx, 0xffffffff
add eax, 8
lock xadd dword [eax], edx
jne 0x458363
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
lea ecx, [esp + 0xe0]
mov byte [esp + 0x230], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
add dword [esp + 0x24], 1
add dword [esp + 0x28], 0x78
mov esi, dword [esp + 0x24]
jmp 0x457fb3
lea eax, [esp + 0xe0]
push 0x5306b8
push eax
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
test al, al
jne 0x458536
cmp esi, 2
je 0x4583bc
cmp esi, 3
je 0x4583bc
cmp esi, 6
jne 0x458536
lea ecx, [esp + 0xe0]
mov byte [esp + 0x230], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
add ebx, 0x1c
lea edi, [esp + 0x44]
call fcn.004af770
mov edx, dword [eax]
sub esp, 8
mov ecx, esp
mov dword [ecx], edx
mov eax, dword [eax + 4]
test eax, eax
mov dword [esp + 0x60], esp
mov dword [ecx + 4], eax
je 0x458400
add eax, 8
mov ecx, 1
lock xadd dword [eax], ecx
sub esp, 0x108
mov byte [esp + 0x340], 9
mov edx, esp
mov dword [esp + 0x15c], esp
push edx
lea edi, [esp + 0x210]
call fcn.00458730
mov esi, dword [esp + 0x12c]
lea eax, [esp + 0x16c]
push eax
mov ecx, esi
mov byte [esp + 0x344], 0xa
call fcn.0045c960
mov byte [esp + 0x340], 0xb
mov eax, dword [esi + 0x2e8]
lea edx, [eax + 0x858]
lea ecx, [eax + 0x374]
add eax, 0x990
push eax
mov byte [esp + 0x344], 0xc
call fcn.004e0e30
lea ecx, [esp + 0x5c]
mov byte [esp + 0x230], 8
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 byte [esp + 0x230], 0
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4584bd
mov esi, eax
add eax, 4
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4584bd
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4584bd
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov edi, dword [esp + 0x2c]
or byte [edi + 0x72], 0x80
push 0
push 0x1312d00
call fcn.0047d900
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov ecx, ebx
add ecx, eax
mov eax, esi
adc eax, edx
push 0
push 0x989680
mov dword [edi + 0x60], ecx
mov dword [edi + 0x64], eax
call fcn.0047d900
add esp, 0x10
mov ecx, ebx
add ecx, eax
mov eax, esi
adc eax, edx
mov dword [edi + 0x6c], eax
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x68], ecx
mov esi, dword [eax + 0x2e8]
add esi, 0x380
lea ebx, [esi + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x10]
cmp eax, dword [esi + 0x30]
push ebx
jb 0x4585da
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x45869a
push 0
push 0xa
lea esi, [esp + 0x9c]
call fcn.0044de00
mov ecx, dword [eax]
mov eax, dword [eax + 4]
add esp, 8
add ecx, dword [esp + 0x14]
adc eax, dword [esp + 0x18]
mov dword [edi + 0x60], ecx
mov dword [edi + 0x64], eax
mov esi, dword [ebx + 0x2e8]
add esi, 0x380
call fcn.00470870
test al, al
je 0x458363
lea ecx, [esp + 0x3c]
push ecx
mov ecx, ebx
call fcn.004644a0
lea edx, [esp + 0x15c]
push edx
push eax
lea eax, [esp + 0x64]
push eax
mov byte [esp + 0x23c], 6
call fcn.00451890
mov byte [esp + 0x230], 7
mov ecx, dword [ebx + 0x2e8]
push eax
add ecx, 0x380
push ecx
call fcn.004cd100
lea edx, [esp + 0x5c]
push edx
mov byte [esp + 0x234], 6
call fcn.00451a80
mov byte [esp + 0x230], 3
mov eax, dword [esp + 0x40]
jmp 0x45834a
mov eax, dword [esi + 0x2c]
shr eax, 4
and al, 1
mov byte [esp + 0x17], al
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [esp + 0x13], 0
je 0x45869a
mov ebx, dword [esp + 0x1c]
lea ecx, [esp + 0x50]
push ecx
mov ecx, ebx
call fcn.004644a0
lea edx, [esp + 0x15c]
push edx
push eax
lea eax, [esp + 0xa4]
mov byte [esp + 0x238], 0xd
mov esi, dword [esp + 0x160]
push eax
call fcn.0044e8f0
mov dword [esp + 0x9c], vtable.libtorrent::tracker_announce_alert.0
mov dword [esp + 0xd4], esi
mov byte [esp + 0x230], 0xe
mov edx, dword [ebx + 0x2e8]
lea ecx, [esp + 0x9c]
push ecx
add edx, 0x380
push edx
call fcn.004cd100
lea eax, [esp + 0x9c]
push eax
mov byte [esp + 0x234], 0xd
call fcn.0044e990
mov byte [esp + 0x230], 0
mov eax, dword [esp + 0x54]
test eax, eax
je 0x45869a
mov ecx, eax
add eax, 8
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x45869a
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
test byte [edi + 0x72], 0x7f
mov byte [esp + 0x12], 1
jne 0x4586c1
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x2e8]
cmp byte [eax + 0x1c1], 0
jne 0x4586c1
cmp byte [eax + 0x1c2], 0
je 0x4586d8
mov ebx, dword [esp + 0x1c]
add dword [esp + 0x24], 1
add dword [esp + 0x28], 0x78
mov esi, dword [esp + 0x24]
jmp 0x457fb3
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
push edx
push ebx
call fcn.00465ff0
lea eax, [esp + 0xfc]
push eax
mov dword [esp + 0x234], 0xffffffff
call fcn.0044e400
mov ecx, dword [esp + 0x228]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00515015
mov esp, ebp
pop ebp
ret 8