Function at 0x40b327
Capabilities:
Get common file path

Disassembly:
mov eax, 0x40edc1
call fcn.0040dca0
mov eax, 0x3310
call fcn.0040dc40
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
mov esi, ecx
je 0x40b390
cmp dword [esi + 8], ebx
jne 0x40b390
cmp dword [esi + 0xb7c], ebx
je 0x40b390
lea eax, [esi + 0x1b90]
push 0x4134c4
push eax
call dword [sym.imp.MSVCP60.dll_bool___cdecl_std::operator__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
pop ecx
test al, al
pop ecx
je 0x40b385
push dword [ebp + 0x10]
mov ecx, esi
call fcn.0040b7e5
test al, al
jne 0x40b390
mov dword [ebp + 8], 0x80004005
jmp 0x40b59c
mov ecx, dword [esi + 0xb7c]
call fcn.00406c15
push edi
lea ecx, [ebp - 0x331c]
call fcn.0040bea8
push 0x20
lea edi, [ebp - 0x11f]
pop eax
mov byte [ebp - 0x120], bl
push 0x40
mov dword [ebp - 0x208], eax
mov dword [ebp - 0x204], eax
pop ecx
xor eax, eax
mov byte [ebp - 0x1b4], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x120]
mov byte [ebp - 0x1b3], bl
push eax
push 0x104
mov byte [ebp - 0x1b2], bl
mov dword [ebp - 0x20c], 5
mov byte [ebp - 0x17b], 2
mov byte [ebp - 0x1a8], 1
mov byte [ebp - 0x1b1], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, dword [esi + 0xb7c]
call fcn.00409251
mov edi, dword [sym.imp.MSVCRT.dll__snprintf]
mov dword [ebp + 8], eax
push eax
lea eax, [ebp - 0x120]
push eax
push str._spatch_d.pkg
lea eax, [ebp - 0x2314]
push 0x103
push eax
call edi
mov eax, dword [esi + 0x1b8c]
add esp, 0x14
add eax, 0x14
push dword [ebp + 8]
push eax
push str.http:___s_d.pkg
lea eax, [ebp - 0x3318]
push 0x1003
push eax
call fcn.00401581
add esp, 0x14
lea eax, [ebp - 0x3318]
push eax
lea eax, [esi + 0xb88]
push 0x1004
push eax
call edi
mov al, byte [ebp + 0xb]
add esp, 0xc
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x1c], al
push ebx
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea eax, [ebp - 0x2314]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x2314]
push eax
lea ecx, [ebp - 0x1c]
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 ecx, dword [esi + 0xb7c]
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 4], ebx
call fcn.004089b2
lea eax, [ebp - 0x3318]
mov edi, 0x415b20
push eax
push str.CreateTask:_url_s
push edi
call fcn.00409d3d
add esp, 0xc
lea eax, [ebp - 0x2314]
push eax
push str.CreateTask:_file_s
push edi
call fcn.00409d3d
mov eax, dword [esi + 8]
add esp, 0xc
lea edx, [ebp + 0x10]
mov ecx, dword [eax]
push edx
lea edx, [ebp - 0x331c]
push edx
push eax
call dword [ecx + 0x14]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0x10]
push str.._patch
mov dword [esi + 0x1ba0], eax
call fcn.0040b5af
test al, al
pop ecx
jne 0x40b51d
push str.._patch
call fcn.0040b5c8
pop ecx
cmp dword [ebp + 8], ebx
jne 0x40b58c
lea eax, [ebp - 0x3318]
push eax
push str.StartTask:_url_s
push edi
call fcn.00409d3d
mov eax, dword [esi + 8]
add esp, 0xc
lea edx, [ebp - 0x3318]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x18]
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x1b8c]
cmp eax, ebx
je 0x40b58c
mov eax, dword [eax + 0x5034]
cmp eax, ebx
jl 0x40b57a
push eax
mov ecx, esi
call fcn.0040b771
mov eax, dword [esi + 0x1b8c]
mov eax, dword [eax + 0x5034]
cdq
sub eax, edx
sar eax, 1
push eax
jmp 0x40b585
push 0x32
mov ecx, esi
call fcn.0040b771
push 0x19
mov ecx, esi
call fcn.0040b74e
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
pop edi
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc