Function at 0x10057940
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100741d9
push eax
mov dword fs:[0], esp
sub esp, 0xc0
push ebx
push ebp
push esi
mov esi, dword [esp + 0xdc]
xor ebp, ebp
push edi
cmp esi, ebp
je 0x10058211
push 0x1009bcc4
push esi
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je 0x10058211
push 0x10099fc0
push esi
mov dword [esp + 0x40], ebp
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
cmp ebx, ebp
mov dword [esp + 0x74], ebx
je 0x1005820b
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push ebp
push ebx
call edi
push ebx
call dword [sym.imp.MSVCRT.dll_ftell]
push ebp
push ebp
push ebx
mov esi, eax
call edi
add esp, 0x1c
cmp esi, ebp
jbe 0x10058201
lea eax, [esi + 1]
push eax
call fcn.1003bfe0
push ebx
mov edi, eax
push esi
push 1
push edi
mov dword [esp + 0x68], edi
call dword [sym.imp.MSVCRT.dll_fread]
mov byte [edi + esi], 0
add esp, 0x14
mov dword [esp + 0x1c], ebp
lea ecx, [esp + 0x1c]
mov dword [esp + 0xd8], ebp
call fcn.10002fd0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], ebp
push ecx
call fcn.10059920
add esp, 4
test al, al
je 0x100581df
mov edx, dword [esp + 0x1c]
push edx
push edi
call fcn.10059a60
add esp, 8
test al, al
je 0x100581df
push ecx
mov dword [esp + 0x50], esp
mov esi, esp
push 0xc
call fcn.1003bfe0
add esp, 4
mov dword [esp + 0x48], eax
cmp eax, ebp
mov byte [esp + 0xdc], 1
je 0x10057a60
push 0x10099fbc
mov ecx, eax
call fcn.10015570
jmp 0x10057a62
xor eax, eax
cmp eax, ebp
mov byte [esp + 0xdc], 0
mov dword [esi], eax
jne 0x10057a7a
push 0x8007000e
call fcn.1006e336
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x20]
push eax
mov byte [esp + 0xe0], 0
call fcn.100155b0
mov ecx, eax
call fcn.1004cc50
mov byte [esp + 0xd8], 3
mov dword [esp + 0x40], ebp
mov eax, dword [esp + 0x28]
cmp eax, ebp
jne 0x10057ab9
push 0x80004003
call fcn.1006e336
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
lea edx, [esp + 0x50]
push edx
push eax
mov esi, eax
call dword [ecx + 0x20]
cmp eax, ebp
jge 0x10057ad6
push 0x10085f48
push esi
push eax
call fcn.1006e344
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x50]
cmp eax, ecx
jge 0x100581c9
cmp dword [esp + 0x28], ebp
jne 0x10057af6
push 0x80004003
call fcn.1006e336
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x2c]
call fcn.1004cd00
mov eax, dword [esp + 0x30]
mov byte [esp + 0xd8], 4
cmp eax, ebp
je 0x100581a5
push ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x30], esp
mov esi, esp
push 0xc
call fcn.1003bfe0
add esp, 4
mov dword [esp + 0x4c], eax
cmp eax, ebp
mov byte [esp + 0xdc], 5
je 0x10057b4b
push 0x10099fbc
mov ecx, eax
call fcn.10015570
jmp 0x10057b4d
xor eax, eax
cmp eax, ebp
mov byte [esp + 0xdc], 4
mov dword [esi], eax
jne 0x10057b65
push 0x8007000e
call fcn.1006e336
lea edx, [esp + 0x24]
lea ecx, [esp + 0x34]
push edx
mov byte [esp + 0xe0], 4
call fcn.100155b0
mov ecx, eax
call fcn.1004cc50
mov byte [esp + 0xd8], 7
mov dword [esp + 0x2c], ebp
mov eax, dword [esp + 0x20]
cmp eax, ebp
jne 0x10057ba4
push 0x80004003
call fcn.1006e336
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
lea edx, [esp + 0x58]
push edx
push eax
mov esi, eax
call dword [ecx + 0x20]
cmp eax, ebp
jge 0x10057bc1
push 0x10085f48
push esi
push eax
call fcn.1006e344
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x58]
cmp eax, ecx
jge 0x1005818b
cmp dword [esp + 0x20], ebp
jne 0x10057be1
push 0x80004003
call fcn.1006e336
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.1004cd00
mov ecx, dword [esp + 0x34]
mov byte [esp + 0xd8], 8
cmp ecx, ebp
je 0x10058170
lea edx, [esp + 0x5c]
push edx
call fcn.10014eb0
mov ecx, dword [eax]
mov byte [esp + 0xd8], 9
cmp ecx, ebp
je 0x10057c24
call fcn.10015630
mov esi, eax
jmp 0x10057c26
xor esi, esi
mov al, byte [esp + 0x12]
push ebp
lea ecx, [esp + 0x90]
mov byte [esp + 0x90], al
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 edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
lea ecx, [esp + 0x94]
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_char_const___unsigned_int_]
lea ecx, [esp + 0x5c]
mov byte [esp + 0xd8], 0xb
call fcn.1000f220
mov eax, dword [esp + 0x90]
cmp eax, ebp
jne 0x10057c7b
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 [str.Info]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x10058155
push 0x30
call fcn.1003bfe0
mov esi, eax
add esp, 4
mov dword [esp + 0x48], esi
cmp esi, ebp
mov byte [esp + 0xd8], 0xc
je 0x10057d51
lea edx, [esp + 0x3f]
mov ecx, esi
push edx
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::allocator_char__const__]
lea ebp, [esi + 0x10]
lea eax, [esp + 0x3e]
push eax
mov ecx, ebp
mov byte [esp + 0xdc], 0xd
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::allocator_char__const__]
lea ecx, [esp + 0x13]
lea ebx, [esi + 0x20]
push ecx
mov ecx, ebx
mov byte [esp + 0xdc], 0xe
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::allocator_char__const__]
mov edi, 0x1009bcc4
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0xd8], 0xf
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x1009bcc4
mov ecx, esi
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_char_const___unsigned_int_]
mov edi, 0x1009bcc4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x1009bcc4
mov ecx, ebp
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_char_const___unsigned_int_]
mov edi, 0x1009bcc4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x1009bcc4
mov ecx, ebx
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_char_const___unsigned_int_]
xor ebp, ebp
jmp 0x10057d53
xor esi, esi
push ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x4c], esp
mov esi, esp
push 0xc
mov byte [esp + 0xe0], 0xb
call fcn.1003bfe0
add esp, 4
mov dword [esp + 0xa0], eax
cmp eax, ebp
mov byte [esp + 0xdc], 0x10
je 0x10057d91
push 0x10099fbc
mov ecx, eax
call fcn.10015570
jmp 0x10057d93
xor eax, eax
cmp eax, ebp
mov byte [esp + 0xdc], 0xb
mov dword [esi], eax
jne 0x10057dab
push 0x8007000e
call fcn.1006e336
lea edx, [esp + 0x28]
lea ecx, [esp + 0x38]
push edx
mov byte [esp + 0xe0], 0xb
call fcn.100155b0
mov ecx, eax
call fcn.1004cc50
mov byte [esp + 0xd8], 0x12
xor ebx, ebx
mov eax, dword [esp + 0x24]
cmp eax, ebp
jne 0x10057de8
push 0x80004003
call fcn.1006e336
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
lea edx, [esp + 0x70]
push edx
push eax
mov esi, eax
call dword [ecx + 0x20]
cmp eax, ebp
jge 0x10057e05
push 0x10085f48
push esi
push eax
call fcn.1006e344
cmp ebx, dword [esp + 0x70]
jge 0x10058119
cmp dword [esp + 0x24], ebp
jne 0x10057e1f
push 0x80004003
call fcn.1006e336
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x18]
push eax
call fcn.1004cd00
mov ecx, dword [esp + 0x18]
mov byte [esp + 0xd8], 0x13
cmp ecx, ebp
je 0x10058101
lea edx, [esp + 0x78]
push edx
call fcn.10014eb0
mov ecx, dword [eax]
mov byte [esp + 0xd8], 0x14
cmp ecx, ebp
je 0x10057e62
call fcn.10015630
mov esi, eax
jmp 0x10057e64
xor esi, esi
mov al, byte [esp + 0x13]
push ebp
lea ecx, [esp + 0x80]
mov byte [esp + 0x80], al
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 edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
lea ecx, [esp + 0x84]
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_char_const___unsigned_int_]
lea ecx, [esp + 0x78]
mov byte [esp + 0xd8], 0x16
call fcn.1000f220
mov eax, dword [esp + 0x80]
cmp eax, ebp
jne 0x10057eb9
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 [str.verID]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push ecx
push eax
call esi
test eax, eax
jne 0x10057f2a
cmp dword [esp + 0x18], ebp
jne 0x10057edd
push 0x80004003
call fcn.1006e336
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x44]
push edx
call fcn.1004cbb0
mov ecx, dword [eax]
mov byte [esp + 0xd8], 0x17
cmp ecx, ebp
je 0x10057f02
call fcn.10015630
mov edx, eax
jmp 0x10057f04
xor edx, edx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0x18]
push edx
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_char_const___unsigned_int_]
lea ecx, [esp + 0x44]
call fcn.1000f220
jmp 0x100580e6
mov eax, dword [esp + 0x80]
cmp eax, ebp
jne 0x10057f3a
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 [str.linkurl]
push ecx
push eax
call esi
test eax, eax
jne 0x100580e6
cmp dword [esp + 0x18], ebp
jne 0x10057f5c
push 0x80004003
call fcn.1006e336
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x4c]
push edx
call fcn.1004cbb0
mov ecx, dword [eax]
mov byte [esp + 0xd8], 0x18
cmp ecx, ebp
je 0x10057f81
call fcn.10015630
mov esi, eax
jmp 0x10057f83
xor esi, esi
mov al, byte [esp + 0x13]
push ebp
lea ecx, [esp + 0x64]
mov byte [esp + 0x64], al
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 edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
lea ecx, [esp + 0x68]
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_char_const___unsigned_int_]
lea ecx, [esp + 0x4c]
mov byte [esp + 0xd8], 0x1a
call fcn.1000f220
push 1
lea ecx, [esp + 0x16]
push ebp
push ecx
lea ecx, [esp + 0x6c]
mov byte [esp + 0x1e], 0x3f
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int__unsigned_int_const]
cmp eax, 0xffffffff
je 0x100580b6
lea esi, [eax + 1]
lea edx, [esp + 0xa0]
push esi
push ebp
push edx
lea ecx, [esp + 0x6c]
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__::substr_unsigned_int__unsigned_int_]
push str.http:__
push eax
lea eax, [esp + 0xb8]
mov byte [esp + 0xe0], 0x1b
push eax
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
add esp, 0xc
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ecx, dword [esp + 0x14]
add ecx, 0x10
mov byte [esp + 0xd8], 0x1c
mov edx, dword [edx]
push edx
push ebp
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_]
push 1
lea ecx, [esp + 0xb4]
mov byte [esp + 0xdc], 0x1b
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0xa4]
mov byte [esp + 0xdc], 0x1a
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 [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea edx, [esp + 0xc0]
mov ecx, dword [eax]
push ecx
push esi
push edx
lea ecx, [esp + 0x6c]
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__::substr_unsigned_int__unsigned_int_]
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ecx, dword [esp + 0x14]
add ecx, 0x20
mov byte [esp + 0xd8], 0x1d
mov edx, dword [edx]
push edx
push ebp
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_]
push 1
lea ecx, [esp + 0xc4]
mov byte [esp + 0xdc], 0x1a
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x100580d2
mov eax, dword [esp + 0x14]
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea ecx, [eax + 0x10]
mov eax, dword [edx]
push eax
lea edx, [esp + 0x64]
push ebp
push edx
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_]
push 1
lea ecx, [esp + 0x64]
mov byte [esp + 0xdc], 0x16
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x80]
mov byte [esp + 0xdc], 0x13
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 ecx, dword [esp + 0x18]
cmp ecx, ebp
mov byte [esp + 0xd8], 0x12
je 0x10058113
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
inc ebx
jmp 0x10057dd2
mov eax, dword [esp + 0x24]
mov byte [esp + 0xd8], 0xb
cmp eax, ebp
je 0x1005812f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0xe4]
lea edx, [esp + 0x14]
push edx
mov eax, dword [ecx + 8]
push eax
call fcn.100159d0
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x74]
inc eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x38], eax
push 1
lea ecx, [esp + 0x90]
mov byte [esp + 0xdc], 8
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 ecx, dword [esp + 0x34]
cmp ecx, ebp
mov byte [esp + 0xd8], 7
je 0x10058182
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
inc dword [esp + 0x2c]
jmp 0x10057b8e
mov eax, dword [esp + 0x20]
mov byte [esp + 0xd8], 4
cmp eax, ebp
je 0x100581a1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x30]
cmp eax, ebp
mov byte [esp + 0xd8], 3
je 0x100581b7
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x54]
inc eax
mov dword [esp + 0x40], eax
jmp 0x10057aa3
mov eax, dword [esp + 0x28]
mov byte [esp + 0xd8], 0
cmp eax, ebp
je 0x100581df
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push edi
call fcn.1003c010
mov eax, dword [esp + 0x20]
add esp, 4
cmp eax, ebp
mov dword [esp + 0xd8], 0xffffffff
je 0x10058201
mov edx, dword [eax]
push eax
call dword [edx + 8]
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, dword [esp + 0x38]
jmp 0x10058213
xor eax, eax
mov ecx, dword [esp + 0xd0]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xcc
ret 8