Function at 0x100b4730
Capabilities:
Check http status code
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1024d493
push eax
mov eax, 0x1160
mov dword fs:[0], esp
call fcn.1006fb30
push esi
xor eax, eax
push edi
push eax
push eax
push eax
push eax
push eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
mov dword [ebp - 0xa8], esi
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push eax
push 2
push esi
mov dword [ebp - 0x14], 0x7d0
call edi
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 3
push eax
push 3
push esi
call edi
push dword [ebp + 8]
lea ecx, [ebp - 0xa4]
call fcn.1001a380
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x8c], 0x10320968
nop word [eax + eax]
xor eax, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
push 0x10
mov byte [ebp - 4], 3
call fcn.1006e6a7
add esp, 4
mov dword [ebp - 0x50], eax
mov ecx, dword [0x10320968]
test ecx, ecx
je 0x100b4810
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x1031bf20
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 5
call fcn.1001a380
mov edi, dword [ebp - 0x18]
mov eax, dword [0x10320968]
or edi, 2
test eax, eax
je 0x100b4837
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x70]
or edi, 1
lea eax, [ebp - 0xa4]
cmp dword [ebp - 0x5c], 8
push 0x4200000
cmovae ecx, dword [ebp - 0x70]
cmp dword [ebp - 0x90], 8
push 0xffffffffffffffff
cmovae eax, dword [ebp - 0xa4]
push ecx
mov ecx, dword [ebp - 0x50]
push eax
push esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call sym.WMCommon.dll_public:_void___thiscall_WM::GMInternetFile::constructor_void___wchar_t_const___wchar_t_const___unsigned_long_int__unsigned_long_int_
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 8
call fcn.10034d80
mov edx, dword [ebp - 0x28]
mov ecx, dword [eax]
mov dword [ebp - 0x28], ecx
mov dword [eax], edx
mov edi, dword [ebp - 0x24]
test edi, edi
je 0x100b48de
lea eax, [edi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x100b48de
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea eax, [edi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x100b48de
mov edx, dword [edi]
mov ecx, edi
mov eax, dword [edx + 8]
cmp eax, fcn.1001eaf0
jne 0x100b4f74
push 1
call dword [edx]
mov eax, dword [ebp - 0x1c]
push eax
push eax
lea eax, [ebp - 0x2c]
push eax
call sym.WMCommon.dll_public:_void___thiscall_WM::GMFuncTaskListSingleton::destructor_void_
mov eax, dword [ebp - 0x2c]
add esp, 0xc
mov ecx, dword [ebp - 0x58]
mov edi, dword [ebp - 0x54]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x28], edi
test edi, edi
je 0x100b4949
lea eax, [edi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x100b4949
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea eax, [edi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x100b4949
mov edx, dword [edi]
mov ecx, edi
mov eax, dword [edx + 8]
cmp eax, fcn.1001eaf0
jne 0x100b4f7b
push 1
call dword [edx]
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x70]
and dword [ebp - 0x18], 0xfffffffe
call fcn.1001a5a0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x100b4edf
cmp dword [eax], 0
jne 0x100b497f
mov edi, dword [ebp + 0x1c]
test edi, edi
je 0x100b497f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x2c], eax
mov eax, dword [ebp - 0x1c]
xor edi, edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0x20], edi
mov eax, dword [eax]
test eax, eax
je 0x100b4eb2
push edi
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x20]
push ecx
push 0x20000013
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov edi, dword [ebp - 0x20]
cmp edi, 0xc8
je 0x100b49d1
cmp edi, 0x12e
je 0x100b49d1
cmp edi, 0x12d
je 0x100b49d1
cmp edi, 0x133
jne 0x100b4eb2
push 0x1048
lea eax, [ebp - 0x116c]
mov dword [ebp - 0x4c], 0x1048
push 0
push eax
mov dword [ebp - 0x48], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp edi, 0x12e
je 0x100b4a0d
cmp edi, 0x12d
je 0x100b4a0d
cmp edi, 0x133
jne 0x100b4a2e
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
test eax, eax
je 0x100b4a2e
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x116c]
push ecx
push 0x21
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
lea eax, [ebp - 0x116c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x100b4a82
lea ecx, [ebp - 0x116c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100b4a50
sub ecx, edx
lea eax, [ebp - 0x116c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xa4]
call fcn.1001a600
lea ecx, [ebp - 0x88]
call fcn.1001a5a0
jmp 0x100b47d0
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x100b4a8f
mov eax, dword [ebp - 0x20]
mov dword [ecx + 0x28], eax
mov edi, dword [ebp + 0x10]
cmp dword [edi + 0x10], 0
jne 0x100b4bd8
push 0x1048
lea eax, [ebp - 0x116c]
mov dword [ebp - 0x48], 0
push 0
push eax
mov dword [ebp - 0x4c], 0x1048
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x1c]
add esp, 0xc
mov eax, dword [eax]
test eax, eax
je 0x100b4ae1
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x116c]
push ecx
push 0x2f
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
lea eax, [ebp - 0x116c]
push eax
lea ecx, [ebp - 0x44]
call fcn.1001a2f0
push str.filename
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 9
call fcn.1001a2f0
push 0
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x44]
push eax
call sym.WMCommon.dll_public:_static_unsigned_int___cdecl_WM::GMStringUtils::FindNoCase_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___unsigned_int_
add esp, 0xc
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 9
call fcn.1001a5a0
mov eax, dword [ebp - 0x18]
cmp eax, 0xffffffff
je 0x100b4bd0
push eax
push 0x10266ca8
lea ecx, [ebp - 0x44]
call fcn.1001cee0
mov ecx, eax
mov dword [ebp - 0x14], ecx
cmp ecx, 0xffffffff
je 0x100b4b71
push str.filename
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x18]
sub ecx, eax
push str.filename
mov dword [ebp - 0x14], ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x14]
push ecx
jmp 0x100b4b7e
push 0xffffffffffffffff
push str.filename
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x44]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.1001ce30
push eax
mov ecx, edi
call fcn.1001a270
lea ecx, [ebp - 0x70]
call fcn.1001a5a0
push str.__t_n_
push edi
call sym.WMCommon.dll_public:_static_void___cdecl_WM::GMStringUtils::TrimLeft_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____wchar_t_const__
push str.__t_n_
push edi
call sym.WMCommon.dll_public:_static_void___cdecl_WM::GMStringUtils::TrimRight_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____wchar_t_const__
add esp, 0x10
cmp dword [edi + 0x10], 0
je 0x100b4bd0
mov eax, dword [ebp + 0x14]
cmp dword [eax + 0x10], 0
je 0x100b4bd0
push eax
push edi
call sym.WMCommon.dll_public:_static_bool___cdecl_WM::GMStringUtils::EndWithNoCase_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 8
lea ecx, [ebp - 0x44]
call fcn.1001a5a0
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 2
call fcn.1001a5a0
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x100b4e6b
push str.http
lea ecx, [ebp - 0x124]
call sym.WMCommon.dll_public:_void___thiscall_WM::GMUrlParser::constructor_wchar_t_const__
mov byte [ebp - 4], 0xb
lea edx, [ebp - 0xa4]
cmp dword [ebp - 0x90], 8
cmovae edx, dword [ebp - 0xa4]
sub esp, 0x18
mov eax, esp
xor ecx, ecx
mov dword [ebp - 0x50], eax
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x24], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100b4c40
sub ecx, dword [ebp - 0x24]
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x50]
push edx
call fcn.1001a600
lea ecx, [ebp - 0x124]
call sym.WMCommon.dll_public:_bool___thiscall_WM::GMUrlParser::Parse_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___
test al, al
je 0x100b4cd7
lea eax, [ebp - 0xf0]
push eax
lea ecx, [ebp - 0x44]
call fcn.1001a380
push ecx
push 0x10266da0
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xc
call fcn.10020180
cmp eax, 0xffffffff
jne 0x100b4cab
lea eax, [ebp - 0x44]
cmp edi, eax
je 0x100b4ccb
cmp dword [ebp - 0x30], 8
mov ecx, edi
push dword [ebp - 0x34]
cmovae eax, dword [ebp - 0x44]
push eax
call fcn.1001a600
jmp 0x100b4ccb
push 0xffffffffffffffff
inc eax
lea ecx, [ebp - 0x44]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.1001ce30
push eax
mov ecx, edi
call fcn.1001a270
lea ecx, [ebp - 0x70]
call fcn.1001a5a0
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xb
call fcn.1001a5a0
mov eax, dword [ebp + 0x14]
cmp dword [eax + 0x10], 0
je 0x100b4d06
push eax
push edi
call sym.WMCommon.dll_public:_static_bool___cdecl_WM::GMStringUtils::EndWithNoCase_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 8
test al, al
jne 0x100b4d06
mov eax, dword [ebp + 0x14]
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x100b4cfb
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, edi
call fcn.1001a7c0
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 2
call fcn.1001a5a0
lea ecx, [ebp - 0xf0]
call fcn.1001a5a0
lea ecx, [ebp - 0x10c]
call fcn.1001a5a0
lea ecx, [ebp - 0x124]
call fcn.1001a5a0
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x100b4e6b
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 0xe
push eax
call sym.WMCommon.dll_public:_static_bool___cdecl_WM::GMFileSystemUtils::MyGetTempPath_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____
add esp, 4
mov dword [ebp - 0x78], 0
xor eax, eax
mov dword [ebp - 0x74], 7
lea ecx, [ebp - 0x88]
mov word [ebp - 0x88], ax
push 3
push 0x10267be0
call fcn.1001a600
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 0xf
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x70]
push eax
call sym.WMCommon.dll_public:_static_bool___cdecl_WM::GMFileSystemUtils::MyGetTempFileName_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____
add esp, 0xc
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x88]
call fcn.1001a5a0
mov eax, dword [ebp + 0x14]
cmp dword [eax + 0x10], 0
je 0x100b4e05
push eax
lea eax, [ebp - 0x44]
push eax
call sym.WMCommon.dll_public:_static_bool___cdecl_WM::GMStringUtils::EndWithNoCase_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 8
test al, al
jne 0x100b4e05
mov eax, dword [ebp + 0x14]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x88]
push eax
call sym.WMCommon.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_WM::GMFilePathUtils::ChangeExtension_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 0xc
lea ecx, [ebp - 0x44]
push eax
call fcn.1001a270
lea ecx, [ebp - 0x88]
call fcn.1001a5a0
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x88]
push eax
call sym.WMCommon.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_WM::GMFilePathUtils::FileName_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 8
mov dword [ebp - 0x24], eax
cmp edi, eax
je 0x100b4e4c
mov ecx, edi
call fcn.1001a5a0
mov eax, dword [ebp - 0x24]
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [edi], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x88]
call fcn.1001a5a0
lea ecx, [ebp - 0x44]
call fcn.1001a5a0
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 2
call fcn.1001a5a0
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0xc0]
push edi
push eax
call sym.WMCommon.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_WM::GMFileName::JoinFileName_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
push edi
mov byte [ebp - 4], 0x10
call sym.WMCommon.dll_public:_static_bool___cdecl_WM::GMFilePathUtils::CreateDirectories_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
push dword [ebp + 0x20]
mov edi, dword [ebp + 0x1c]
lea eax, [ebp - 0xc0]
push edi
push dword [ebp + 0x18]
push eax
push dword [ebp - 0x1c]
call sym.WMCommon.dll_private:_static_bool___cdecl_WM::GMInternetDownload::DownloadToFile_class_WM::GMInternetFile___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___void___class_WM::GMInternetInfo___unsigned_int_
add esp, 0x24
mov byte [ebp - 0xd], al
lea ecx, [ebp - 0xc0]
call fcn.1001a5a0
jmp 0x100b4efe
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x100b4ed2
mov dword [eax + 0x28], edi
mov dword [eax + 0x2c], edi
test edi, edi
jne 0x100b4ed6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp + 0x1c]
mov dword [edi + 0x2c], eax
mov edi, dword [ebp - 0x20]
test edi, edi
je 0x100b4eef
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x100b4eef
mov edi, dword [ebp + 0x1c]
test edi, edi
je 0x100b4eef
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x2c], eax
lea ecx, [ebp - 0x88]
call fcn.1001a5a0
mov byte [ebp - 0xd], 0
mov edi, dword [ebp - 0x54]
test edi, edi
je 0x100b4f3c
lea eax, [edi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x100b4f3c
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea eax, [edi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x100b4f3c
mov edx, dword [edi]
mov ecx, edi
mov eax, dword [edx + 8]
cmp eax, fcn.1001eaf0
jne 0x100b4f82
push 1
call dword [edx]
lea ecx, [ebp - 0xa4]
call fcn.1001a5a0
test esi, esi
je 0x100b4f61
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
call eax
jmp 0x100b48de
call eax
jmp 0x100b4949
call eax
jmp 0x100b4f3c