Function at 0x401370
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416e40
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x3ecc
call fcn.00409490
mov eax, dword [0x41e024]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
xor esi, esi
push 0x3ff
mov dword [ebp - 0x3ed0], ecx
mov dword [ebp - 0x3edc], eax
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 0x1b3f]
push esi
push ecx
mov dword [ebp - 0x3ed8], edx
mov dword [ebp - 0x3ed4], eax
mov dword [ebp - 4], esi
mov byte [ebp - 0x1b40], 0
call fcn.004094c0
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
add esp, 0xc
push 0x3ff
lea edx, [ebp - 0x1b40]
push edx
push esi
call edi
push 0x12b
lea eax, [ebp - 0x13f]
push esi
push eax
mov byte [ebp - 0x140], 0
call fcn.004094c0
lea ecx, [ebp - 0x3ecc]
push ecx
lea edx, [ebp - 0x1b40]
push edx
mov dword [ebp - 0x3ecc], esi
call fcn.004028e0
add esp, 0x14
test al, al
je 0x401633
mov eax, dword [ebp - 0x3ecc]
push eax
push str.Session_Id:__u
lea ecx, [ebp - 0x2ec8]
push 0x1388
push ecx
call fcn.00409454
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x10
lea edx, [ebp - 0x2ec8]
push edx
call ebx
push 0x3ff
lea eax, [ebp - 0x53f]
push esi
push eax
mov byte [ebp - 0x540], 0
call fcn.004094c0
push 0xfff
lea ecx, [ebp - 0x173f]
push esi
push ecx
mov byte [ebp - 0x1740], 0
call fcn.004094c0
push 0xfff
lea edx, [ebp - 0x3ec7]
push esi
push edx
mov byte [ebp - 0x3ec8], 0
call fcn.004094c0
mov eax, dword [ebp - 0x3ecc]
push esi
push eax
lea ecx, [ebp - 0x140]
push ecx
call fcn.00403140
add esp, 0x30
cmp eax, esi
jbe 0x401659
push 0x3d
lea edx, [ebp - 0x140]
push str._servlet_ClientServicesServlet_RequestTypeGetLauncherContext
push edx
call fcn.004090e6
mov eax, dword [ebp - 0x3ecc]
push eax
lea ecx, [ebp - 0x140]
push ecx
push str._ssessionID_i
lea edx, [ebp - 0x540]
push 0x3ff
push edx
call fcn.0040953a
lea eax, [ebp - 0x540]
push eax
push str.Launcher_Args_URL_candidate_:__s
lea ecx, [ebp - 0x2ec8]
push 0x1388
push ecx
call fcn.00409454
add esp, 0x30
lea edx, [ebp - 0x2ec8]
push edx
call ebx
push 0x1000
lea eax, [ebp - 0x1740]
push eax
lea ecx, [ebp - 0x540]
push ecx
call fcn.00401090
add esp, 0xc
test eax, eax
jle 0x401659
mov byte [ebp - 0x3ec8], 0
lea ecx, [ebp - 0x1740]
lea edx, [ebp - 0x3ec8]
lea esp, [esp]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x401570
lea edx, [ebp - 0x3ec8]
push 0x41750c
push edx
call fcn.0040934f
add esp, 8
cmp eax, esi
je 0x401659
push str.Success
push eax
call fcn.00409317
add esp, 8
test eax, eax
je 0x401651
push str.Got_launcher_args_from_cookie.
call ebx
lea eax, [ebp - 0x1740]
push eax
push str.Launcher_Args:__s
lea ecx, [ebp - 0x2ec8]
push 0x1388
push ecx
call fcn.00409454
add esp, 0x10
lea edx, [ebp - 0x2ec8]
push edx
call ebx
lea eax, [ebp - 0x1740]
push str.Error
push eax
call fcn.00409317
add esp, 8
test eax, eax
je 0x401814
lea eax, [ebp - 0x1740]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401601
sub eax, edx
cmp eax, 0xff
jbe 0x40161c
mov eax, 0xff
mov byte [ebp - 0x1642], cl
mov edx, dword [ebp - 0x3ed0]
push eax
lea ecx, [ebp - 0x1740]
push ecx
push edx
call fcn.004091d3
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00409472
mov esp, ebp
pop ebp
ret
xor al, al
jne 0x4015b3
push str.Cookie_is_not_available._Try_decoding_launcher_file_name_...
mov byte [ebp - 0x140], 0
call ebx
push 0x1ff
lea eax, [ebp - 0x73f]
push esi
push eax
mov byte [ebp - 0x740], 0
call fcn.004094c0
add esp, 0xc
push 0x200
lea ecx, [ebp - 0x740]
push ecx
push esi
call edi
lea edx, [ebp - 0x140]
push edx
lea eax, [ebp - 0x740]
push eax
call fcn.00402190
add esp, 8
cmp byte [ebp - 0x140], 0
je 0x401746
push 0x3d
lea ecx, [ebp - 0x140]
push str._servlet_ClientServicesServlet_RequestTypeGetLauncherContext
push ecx
call fcn.004090e6
mov edx, dword [ebp - 0x3ecc]
push edx
lea eax, [ebp - 0x140]
push eax
push str._ssessionID_i
lea ecx, [ebp - 0x540]
push 0x3ff
push ecx
call fcn.0040953a
lea edx, [ebp - 0x540]
push edx
push str.Launcher_Args_URL_candidate:__s
lea eax, [ebp - 0x2ec8]
push 0x1388
push eax
call fcn.00409454
add esp, 0x30
lea ecx, [ebp - 0x2ec8]
push ecx
call ebx
push 0x1000
lea edx, [ebp - 0x1740]
push edx
lea eax, [ebp - 0x540]
push eax
mov byte [ebp - 0x1740], 0
call fcn.00401090
add esp, 0xc
cmp eax, 0xffffffff
je 0x401746
push str.Got_launcher_args_URL_from_launcher_file_name.
jmp 0x4015b1
mov ecx, dword [ebp - 0x3ecc]
push ecx
lea edx, [ebp - 0x140]
push edx
mov byte [ebp - 0x140], 0
call fcn.00402520
add esp, 8
push 0x3d
lea eax, [ebp - 0x140]
push str._servlet_ClientServicesServlet_RequestTypeGetLauncherContext
push eax
call fcn.004090e6
mov ecx, dword [ebp - 0x3ecc]
push ecx
lea edx, [ebp - 0x140]
push edx
push str._ssessionID_i
lea eax, [ebp - 0x540]
push 0x3ff
push eax
call fcn.0040953a
lea ecx, [ebp - 0x540]
push ecx
push str.Launcher_Args_URL__from_cache:__s
lea edx, [ebp - 0x2ec8]
push 0x1388
push edx
call fcn.00409454
add esp, 0x30
lea eax, [ebp - 0x2ec8]
push eax
call ebx
push 0x1000
lea ecx, [ebp - 0x1740]
push ecx
lea edx, [ebp - 0x540]
push edx
mov byte [ebp - 0x1740], 0
call fcn.00401090
add esp, 0xc
cmp eax, 0xffffffff
jne 0x40180a
mov edi, dword [ebp - 0x3ed0]
mov ecx, 9
mov esi, str.URL_Error___Unable_to_get_launch_args
rep movsd dword es:[edi], dword [esi]
push str.URL_Error___Unable_to_get_launch_information
movsw word es:[edi], word [esi]
call ebx
jmp 0x401633
push str.Got_launcher_args_URL_from_URL_cache.
jmp 0x4015b1
mov eax, dword [ebp - 0x3ed4]
mov ecx, dword [ebp - 0x3edc]
mov edx, dword [ebp - 0x3ed8]
push eax
mov eax, dword [ebp - 0x3ed0]
push ecx
push edx
push eax
lea ecx, [ebp - 0x1740]
push ecx
call fcn.00401e80
add esp, 0x14
test al, al
je 0x401633
mov al, 1
jmp 0x401635