Function at 0x480da0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d2768
mov eax, dword fs:[0]
push eax
sub esp, 0xc4c
mov eax, dword [0x50d4cc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0xc54], esi
push dword [esi + 0x38]
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0xc1c]
mov dword [ebp - 0xc4c], ebx
mov edi, 0x80004003
mov dword [ebp - 0xc1c], 0
call fcn.004280e0
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0x38]
mov dword [ebp - 0xc14], 0
mov byte [ebp - 4], 2
test ecx, ecx
je 0x480e3c
mov eax, dword [ecx]
lea edx, [ebp - 0xc14]
push edx
push 0x4e85a0
push ecx
call dword [eax]
mov ecx, dword [ebp - 0xc14]
xor edx, edx
test eax, eax
cmovs ecx, edx
mov dword [ebp - 0xc14], ecx
mov byte [ebp - 4], 3
cmp dword [ebp - 0xc1c], 0
je 0x481417
cmp dword [ebp - 0xc14], 0
je 0x481417
test ebx, ebx
jne 0x480f1b
push 0x428
call fcn.0048cdd1
mov edi, eax
add esp, 4
mov dword [ebp - 0xc50], edi
mov byte [ebp - 4], 4
test edi, edi
je 0x480ea0
push 0x428
push ebx
push edi
call fcn.0048f5e0
add esp, 0xc
mov ecx, edi
push ebx
call fcn.0047faf0
mov ebx, eax
mov dword [ebp - 0xc4c], eax
jmp 0x480ea8
xor ebx, ebx
mov dword [ebp - 0xc4c], ebx
mov byte [ebp - 4], 3
test ebx, ebx
jne 0x480f1b
push 0x7ff
lea eax, [ebp - 0xc0f]
mov byte [ebp - 0xc10], bl
push ebx
push eax
call fcn.0048f5e0
add esp, 0xc
lea eax, [ebp - 0xc10]
push 0x8007000e
push str.Cant_create_WIATransferCallback
push str.WIA::CWIACategory::Download
push str._s:_s_HRESULT:_0x_08X_
push 0x800
push eax
call fcn.0048d20f
add esp, 0x18
lea eax, [ebp - 0xc10]
lea ecx, [ebp - 0xc3c]
push eax
push 0x8007000e
call fcn.00483b60
push 0x50a264
lea eax, [ebp - 0xc3c]
push eax
call fcn.0048fd4b
mov dword [ebp - 0xc40], ebx
test ebx, ebx
je 0x480f2b
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
mov byte [ebp - 4], 9
lea eax, [ebp - 0xc30]
movdqu xmm0, xmmword [0x4d6868]
mov ecx, dword [esi + 0x38]
push eax
movdqu xmmword [ebp - 0xc30], xmm0
call fcn.004837b0
add esp, 4
lea ecx, [ebp - 0xc30]
mov edx, 0x4df294
mov edi, 0xc
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x480f95
add ecx, 4
add edx, 4
sub edi, 4
jae 0x480f61
lea ecx, [ebp - 0xc30]
mov edx, 0x4df2b4
mov edi, 0xc
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x480f95
add ecx, 4
add edx, 4
sub edi, 4
jae 0x480f82
jmp 0x480fc6
movdqu xmm0, xmmword [0x4df2c4]
mov ecx, dword [ebp - 0xc14]
sub esp, 0x10
mov eax, esp
movdqu xmmword [eax], xmm0
call fcn.004838b0
add esp, 0x10
test eax, eax
jns 0x480fc6
push eax
push str.WritePropertyGuid___failed_in_DownloadItem__.Format_couldnt_be_set_to_BMP__HR0x_08X
call fcn.004265f0
add esp, 8
xor ebx, ebx
lea ecx, [ebp - 0xc30]
mov dword [ebp - 0xc48], ebx
mov edx, 0x4df2b4
mov dword [ebp - 0xc44], ebx
lea edi, [ebx + 0xc]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x480ff5
add ecx, 4
add edx, 4
sub edi, 4
jae 0x480fe2
jmp 0x48101b
mov ecx, dword [ebp - 0xc14]
lea eax, [ebp - 0xc44]
push eax
mov edx, 0x101b
call fcn.00483620
mov eax, dword [ebp - 0xc44]
add esp, 4
mov dword [ebp - 0xc48], eax
lea ecx, [ebp - 0xc18]
mov dword [ebp - 0xc18], ebx
call fcn.00406550
mov byte [ebp - 4], 0xa
mov ecx, 1
mov edx, dword [ebp - 0xc18]
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, 0x400
or eax, ecx
jge 0x481060
push 0x400
lea ecx, [ebp - 0xc18]
call fcn.00407ad0
mov edx, dword [ebp - 0xc18]
cmp dword [edx - 8], 0x400
jge 0x481073
push 0x80070057
call fcn.00401330
mov dword [edx - 0xc], 0x400
mov eax, dword [ebp - 0xc18]
push edx
push 0x400
mov byte [eax + 0x400], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov eax, dword [ebp - 0xc18]
push dword [eax - 8]
push eax
call fcn.0048bc86
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x481069
mov eax, dword [ebp - 0xc18]
cmp ecx, dword [eax - 8]
jg 0x481069
mov dword [eax - 0xc], ecx
mov eax, dword [ebp - 0xc18]
mov byte [ecx + eax], 0
lea ecx, [ebp - 0xc18]
call fcn.00407480
mov ecx, eax
call fcn.00406a50
push ecx
lea eax, [ebp - 0xc44]
push eax
lea ecx, [ebp - 0xc18]
call fcn.00406bd0
mov byte [ebp - 4], 0xb
push 0x4df41c
push dword [eax]
call fcn.0048ccf3
add esp, 8
test eax, eax
sete bl
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xc44]
call fcn.00406630
test bl, bl
je 0x48114f
mov eax, dword [ebp - 0xc18]
lea ecx, [ebp - 0xc18]
mov eax, dword [eax - 0xc]
dec eax
push eax
lea eax, [ebp - 0xc44]
push eax
call fcn.004314e0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0xc18]
push eax
call fcn.00407500
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xc44]
call fcn.00406630
push 0x400
push dword [ebp - 0xc18]
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [esi + 0x38]
lea edx, [ebp - 0xc20]
mov dword [ebp - 0xc20], 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov dword [ebp - 0xc44], 0
lea ecx, [ebp - 0xc30]
mov edx, 0x4df2a4
mov edi, 0xc
jmp 0x4811a0
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4811f3
add ecx, 4
add edx, 4
sub edi, 4
jae 0x4811a0
mov ecx, dword [ebp - 0xc14]
mov edx, 0xc18
push 0
call fcn.00483930
xor ecx, ecx
mov dword [ebp - 0xc44], 1
add esp, 4
mov eax, 1
cmp byte [esi + 0x10], cl
mov edx, 0xc23
cmovne eax, ecx
mov ecx, dword [ebp - 0xc14]
push eax
call fcn.00483930
add esp, 4
jmp 0x481211
test dword [ebp - 0xc20], 0x1000
mov ecx, 0
mov eax, dword [ebp - 0xc48]
cmovne eax, ecx
mov dword [ebp - 0xc48], eax
push dword [esi + 0xc]
mov ecx, dword [ebp - 0xc14]
mov edx, 0x1803
call fcn.00483930
mov ecx, dword [ebp - 0xc14]
add esp, 4
mov edx, 0x1804
push dword [esi + 0xc]
call fcn.00483930
mov eax, dword [esi + 4]
add esp, 4
mov ecx, dword [ebp - 0xc14]
mov edx, 0x180b
lea eax, [eax + eax*4]
add eax, eax
push eax
call fcn.00483930
mov eax, dword [esi]
add esp, 4
mov ecx, dword [ebp - 0xc14]
mov edx, 0x180a
lea eax, [eax + eax*4]
add eax, eax
push eax
call fcn.00483930
add esp, 4
mov eax, 1
cmp byte [esi + 0x1c], 0
jne 0x48129b
mov eax, dword [esi + 8]
dec eax
je 0x481296
dec eax
je 0x48128f
mov eax, 1
jmp 0x48129b
mov eax, 4
jmp 0x48129b
mov eax, 2
mov ecx, dword [ebp - 0xc14]
or eax, 0x20000
push eax
mov edx, 0x1802
call fcn.00483930
mov eax, dword [esi + 0xc]
add esp, 4
cdq
mov ecx, eax
mov edi, edx
mov eax, dword [esi + 0x14]
push edi
cdq
push ecx
push edx
push eax
mov dword [ebp - 0xc50], ecx
call fcn.00495c90
mov ecx, edx
mov esi, eax
shld ecx, eax, 2
push 0
shl eax, 2
add esi, eax
push 0xfe
adc edx, ecx
shld edx, esi, 1
push edx
add esi, esi
push esi
call fcn.0049e390
mov ebx, eax
mov eax, dword [ebp - 0xc54]
push edi
push dword [ebp - 0xc50]
mov eax, dword [eax + 0x18]
cdq
push edx
push eax
call fcn.00495c90
mov ecx, eax
mov esi, edx
shld esi, ecx, 2
push 0
shl ecx, 2
add eax, ecx
push 0xfe
adc edx, esi
shld edx, eax, 1
add eax, eax
push edx
push eax
call fcn.0049e390
mov ecx, dword [ebp - 0xc14]
mov edx, 0xc19
push 2
mov esi, eax
call fcn.00483930
mov ecx, dword [ebp - 0xc14]
add esp, 4
mov edx, 0x1807
push ebx
call fcn.00483930
mov ecx, dword [ebp - 0xc14]
add esp, 4
mov edx, 0x1808
push esi
call fcn.00483930
mov esi, dword [ebp - 0xc4c]
lea eax, [ebp - 0x410]
add esp, 4
mov ecx, esi
push dword [ebp - 0xc44]
push dword [ebp - 0xc48]
push eax
call fcn.0047fc10
cmp dword [ebp + 0xc], 1
mov eax, dword [ebp - 0xc1c]
push esi
mov ecx, dword [eax]
jne 0x4813cc
push 1
push eax
call dword [ecx + 0xc]
mov edi, eax
test edi, edi
jne 0x4813b8
push str._npWiaTransfer__Download___on_folder_item_SUCCEEDED
call fcn.0048c0ab
add esp, 4
jmp 0x4813fa
cmp edi, 1
jne 0x4813fa
push str.pWiaTransfer__Download___on_folder_item_returned_S_FALSE._Folder_may_not_be_having_child_items
call fcn.004265f0
add esp, 4
jmp 0x4813fa
push 0
push eax
call dword [ecx + 0xc]
mov edi, eax
test edi, edi
jne 0x4813e7
push str._npWiaTransfer__Download___on_file_item_SUCCEEDED
call fcn.0048c0ab
add esp, 4
jmp 0x4813fa
cmp edi, 1
jne 0x4813fa
push edi
push str.pWiaTransfer__Download___on_file_item_returned_S_FALSE._File_may_be_empty
call fcn.004265f0
add esp, 8
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xc18]
call fcn.00406630
mov byte [ebp - 4], 3
test esi, esi
je 0x481417
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0xc14]
test eax, eax
je 0x48142b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc1c]
call fcn.0040e660
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048b090
mov esp, ebp
pop ebp
ret 8