Function at 0x536520
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x586989
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x244
push ebx
push esi
push edi
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x10], esp
push 0
push 0
push 0
push 0
push 1
push 0
lea ecx, [ebp - 0x44]
call sub.MFC42.DLL_CInternetSession::CInternetSession
mov eax, dword [ebp + 8]
push 0
push 0
push 0
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CInternetSession::GetHttpConnection
push 0
lea ecx, [ebp - 0x14]
push 4
mov edi, eax
mov esi, 0x1388
push ecx
push 2
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x14], esi
call sub.MFC42.DLL_CInternetSession::SetOption
push 0
lea edx, [ebp - 0x14]
push 4
push edx
push 7
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x14], esi
call sub.MFC42.DLL_CInternetSession::SetOption
push 0
lea eax, [ebp - 0x14]
push 4
push eax
push 8
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x14], esi
call sub.MFC42.DLL_CInternetSession::SetOption
mov ecx, dword [ebp + 0xc]
push 0x20000000
push 0
push 0
push 1
push 0
push ecx
push 0
mov ecx, edi
call sub.MFC42.DLL_CHttpConnection::OpenRequest
mov edx, dword [ebp + 0x10]
mov esi, eax
push 0xffffffffffffffff
push 0x10000000
push edx
mov ecx, esi
mov dword [ebp + 0xc], esi
call sub.MFC42.DLL_CHttpFile::AddRequestHeaders
mov edi, dword [ebp + 0x18]
push 1
push 0xc
push edi
mov ecx, esi
call sub.MFC42.DLL_CHttpFile::SendRequestEx
mov ecx, dword [ebp + 0x14]
mov eax, dword [esi]
push edi
push ecx
mov ecx, esi
call dword [eax + 0x40]
push 1
push 0
push 4
mov ecx, esi
call sub.MFC42.DLL_CHttpFile::EndRequest
mov dl, byte [ebp + 0xb]
push 0
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x28], dl
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, 0x5e5830
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [ebp - 0x28]
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x53666e
mov edi, dword [ebp - 0x24]
mov ecx, ebx
mov eax, ecx
mov esi, 0x5e5830
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x20], ebx
mov byte [ecx + ebx], 0
mov edi, dword [ebp + 8]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ebp - 4], 2
mov ebx, ecx
lea ecx, [ebp - 0x28]
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x5366b1
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 0x24]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], ebx
mov byte [eax + ebx], 0
mov edi, str._sc_share_share_q
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x20]
sub edx, ecx
cmp edx, esi
ja 0x5366d9
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
test esi, esi
jbe 0x53671b
mov eax, dword [ebp - 0x20]
push 0
lea ecx, [ebp - 0x28]
lea ebx, [eax + esi]
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x53671b
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
push ebx
lea edi, [edx + ecx]
mov ecx, esi
mov eax, ecx
mov esi, str._sc_share_share_q
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x536727
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]
push 0x5eb7e0
push str.ClientKey
push eax
call sub.MFC42.DLL_CInternetSession::GetCookie
mov eax, dword [ebp - 0x24]
add esp, 0xc
test eax, eax
jne 0x536746
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]
push 0x5e2494
push eax
call sub.MFC42.DLL_CInternetSession::GetCookieLength
mov dword [0x5eb7e4], eax
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x147]
mov byte [ebp - 0x148], 0
mov esi, dword [ebp + 0xc]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 8
mov ecx, esi
stosb byte es:[edi], al
mov edx, dword [esi]
lea eax, [ebp - 0x148]
push 0x104
push eax
call dword [edx + 0x3c]
lea ecx, [ebp - 0x148]
push ecx
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esi]
mov ecx, esi
mov byte [ebp - 4], 3
call dword [edx + 0x54]
test esi, esi
je 0x5367af
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp - 0x30]
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x14]
test esi, esi
je 0x5367c6
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
mov cx, word [0x5e5cb0]
xor eax, eax
mov word [ebp - 0x24c], cx
mov ecx, 0x40
lea edi, [ebp - 0x24a]
push 0
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x18]
stosw word es:[edi], ax
call sub.MFC42.DLL_CString::GetBuffer
push eax
push str._STORM_UPLOAD__SendHttpData_Ret___s_
lea edx, [ebp - 0x24c]
push 0x104
push edx
call dword [sym.imp.MSVCRT.dll__snprintf]
mov edi, dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
add esp, 0x10
lea eax, [ebp - 0x24c]
push eax
call edi
mov esi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
mov ebx, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x5d9690
push ecx
mov dword [esi + 0x17c], 0
call ebx
add esp, 8
test eax, eax
jne 0x53684c
push str._STORM_UPLOAD__TRY_UPLOAD_OK
call edi
mov esi, 1
jmp 0x5368bd
mov edx, dword [ebp - 0x18]
push 0x5e2448
push edx
call ebx
add esp, 8
test eax, eax
jne 0x53687d
push 0x40
push 0x5d2058
push 0x5e241c
mov ecx, esi
mov dword [esi + 0x17c], 2
call sub.MFC42.DLL_CWnd::MessageBoxA
jmp 0x5368bb
mov eax, dword [ebp - 0x18]
push 0x5e2418
push eax
call ebx
add esp, 8
test eax, eax
jne 0x5368b1
push 0x7e
push 0x10
push 0x5cf198
push 0x5e2408
mov dword [esi + 0x17c], 1
call fcn.00405490
add esp, 0x10
jmp 0x5368bb
mov dword [esi + 0x17c], 4
xor esi, esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x24]
xor edi, edi
cmp ecx, edi
je 0x5368ed
mov al, byte [ecx - 1]
dec ecx
test al, al
je 0x5368e4
cmp al, 0xff
je 0x5368e4
dec al
mov byte [ecx], al
jmp 0x5368ed
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0xffffffff
call fcn.00564f7a
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18