Function at 0x4099d0
Capabilities:
Get common file path
Get file size

Disassembly:
sub esp, 0x52c
mov eax, dword [0x49c23c]
xor eax, esp
mov dword [esp + 0x528], eax
push ebx
push ebp
push edi
xor edi, edi
push 0x207
lea eax, [esp + 0x129]
push edi
push eax
mov ebx, ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edi
mov byte [esp + 0x130], 0
call fcn.00440500
push 0x103
lea ecx, [esp + 0x31]
push edi
push ecx
mov byte [esp + 0x38], 0
call fcn.00440500
push 0x206
lea eax, [esp + 0x34a]
xor edx, edx
push edi
push eax
mov word [esp + 0x350], dx
call fcn.00440500
mov ecx, dword [esp + 0x560]
add esp, 0x24
push ecx
mov ecx, ebx
call fcn.00409960
test eax, eax
je 0x409cd4
push esi
push edi
push 0x80
push 3
push edi
push 3
lea eax, [ebx + 4]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x409cd3
lea edx, [esp + 0x18]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
test eax, eax
je 0x409ccd
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x1c], edi
jl 0x409cd3
jg 0x409ab1
cmp dword [esp + 0x18], edi
jbe 0x409cd3
lea eax, [esp + 0x330]
push 0x104
push eax
call fcn.00409450
add esp, 8
test eax, eax
je 0x409cd3
lea ecx, [esp + 0x330]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, edi
je 0x409cd3
push 0x462650
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x409cd3
lea ebp, [ebx + 0x610]
push ebp
push 0x462640
call eax
test eax, eax
jl 0x409cd3
mov eax, dword [ebp]
mov edx, dword [eax]
lea ecx, [ebx + 0x614]
push ecx
push 0x462630
push eax
mov eax, dword [edx]
call eax
test eax, eax
jl 0x409cd3
mov eax, dword [ebp]
mov edx, dword [eax]
lea ecx, [ebx + 0x618]
push ecx
push 0x462620
push eax
mov eax, dword [edx]
call eax
test eax, eax
jl 0x409cd3
mov eax, dword [ebp]
mov ecx, dword [eax]
lea edx, [ebx + 0x61c]
push edx
push 0x462610
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x409cd3
mov ecx, ebx
call fcn.00409330
test eax, eax
je 0x409cd3
lea ecx, [esp + 0x24]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, 0x104
ja 0x409cd3
cmp eax, edi
je 0x409cd3
mov edx, dword [str.srv]
mov al, byte [0x46260c]
lea edi, [esp + 0x24]
mov dword [esp + 0x128], edx
mov byte [esp + 0x12c], al
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x409bb8
mov ecx, dword [0x462604]
lea eax, [esp + 0x24]
mov dword [edi], ecx
mov edx, eax
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409bd0
lea edi, [esp + 0x128]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x409be1
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x128]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x409c01
mov eax, dword [ebx + 0x618]
mov ecx, 0xb
mov esi, str.http:__msdl.microsoft.com_download_symbols
rep movsd dword es:[edi], dword [esi]
mov edx, dword [eax]
mov edx, dword [edx + 0xa4]
lea ecx, [esp + 0x128]
push ecx
push eax
call edx
test eax, eax
jl 0x409cd3
mov eax, dword [ebp]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xb8]
push 0
push eax
call edx
test eax, eax
jl 0x409cd3
mov eax, dword [ebp]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x88]
push 0
push eax
call edx
test eax, eax
jl 0x409cd3
mov eax, dword [ebp]
mov edx, dword [eax]
push 0
push 0
lea ecx, [ebx + 4]
push ecx
push eax
mov eax, dword [edx + 0xf0]
call eax
test eax, eax
jl 0x409cd3
mov eax, dword [ebx + 0x614]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x174]
push 0xffffffffffffffff
push 0
push eax
call edx
test eax, eax
jl 0x409cd3
mov eax, dword [ebx + 0x614]
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [ecx + 0x88]
call eax
test eax, eax
jl 0x409cd3
mov eax, dword [esp + 0x10]
mov dword [ebx], eax
cmp eax, dword [esp + 0x544]
jne 0x409cd3
mov dword [esp + 0x14], 1
jmp 0x409cd3
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov ecx, dword [esp + 0x534]
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.004404e6
add esp, 0x52c
ret 8