Function at 0x10016420
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10032d66
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x10047074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xd4], ecx
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0xe8], eax
xor eax, eax
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 7
mov word [ebp - 0x8c], ax
mov esi, 7
mov dword [ebp - 4], eax
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa8], esi
mov word [ebp - 0xbc], ax
mov byte [ebp - 0xcd], al
lea eax, [ebp - 0xcc]
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.ole32.dll_CoCreateGuid]
push 0x32
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
je 0x10016920
lea eax, [ebp - 0x74]
push eax
push 0x20000
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0xf4], eax
test eax, eax
jne 0x100164ef
mov byte [ebp - 0xcd], al
jmp 0x10016987
mov ecx, dword [edi + 0x10]
mov eax, 0x7ffffffe
sub eax, ecx
mov dword [ebp - 0xe4], ecx
cmp eax, 1
jb 0x100169e3
cmp dword [edi + 0x14], 8
mov dword [ebp - 0xdc], edi
jb 0x1001651c
mov eax, dword [edi]
mov dword [ebp - 0xdc], eax
inc ecx
mov dword [ebp - 0x94], 0
mov esi, 7
mov dword [ebp - 0x90], 0
mov dword [ebp - 0xec], ecx
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xe0], eax
cmp ecx, esi
jbe 0x1001658b
mov esi, ecx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x10016560
mov esi, 0x7ffffffe
jmp 0x1001656a
mov eax, 0xa
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0xa4]
call fcn.10011930
mov ecx, dword [ebp - 0xec]
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0x90], esi
mov esi, dword [ebp - 0xe4]
add esi, esi
mov dword [ebp - 0x94], ecx
push esi
push dword [ebp - 0xdc]
push eax
call fcn.10021c40
mov eax, dword [ebp - 0xe0]
mov ecx, 0x7c
add esp, 0xc
xor edx, edx
mov word [esi + eax], cx
mov ecx, dword [ebp - 0xe4]
mov word [eax + ecx*2 + 2], dx
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 2
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100165d5
sub ecx, edx
lea eax, [ebp - 0x74]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xa4]
call fcn.10017e80
xor ecx, ecx
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x78]
movq qword [ebp - 0xf0], xmm1
movups xmmword [ebp - 0x104], xmm0
cmp edx, 8
jb 0x1001666a
mov ecx, dword [ebp - 0x8c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10016651
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100169e8
push edx
push ecx
call fcn.100200a4
movups xmm0, xmmword [ebp - 0x104]
add esp, 8
movq xmm1, qword [ebp - 0xf0]
mov edx, dword [ebp - 0x90]
movq qword [ebp - 0x7c], xmm1
mov byte [ebp - 4], 1
movups xmmword [ebp - 0x8c], xmm0
cmp edx, 8
jb 0x100166ba
mov ecx, dword [ebp - 0xa4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100166b0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100169e8
push edx
push ecx
call fcn.100200a4
add esp, 8
cmp dword [ebp - 0x78], 8
lea eax, [ebp - 0x8c]
mov dword [ebp - 0xf0], str.desktop_app_win_DropboxShellExt_dropbox_process_proxy.cc
cmovae eax, dword [ebp - 0x8c]
push eax
lea eax, [ebp - 0xf0]
mov dword [ebp - 0xec], 0x12f
push str.Requesting_thumbnail__s_n
push eax
call fcn.100123f0
push str._event
lea eax, [ebp - 0x74]
push 0x32
push eax
call fcn.10025f93
add esp, 0x18
lea eax, [ebp - 0x74]
push eax
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 0xd4]
mov dword [ebp - 0xe0], eax
lea eax, [ebp - 0xbc]
push 0
push eax
lea eax, [ebp - 0x8c]
push eax
push 0xe
call fcn.10016ab0
test al, al
je 0x100168b1
push 0
push 0
push 0
push 4
push dword [ebp - 0xf4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
mov dword [ebp - 0xdc], esi
test esi, esi
je 0x1001686e
push 0x1388
push dword [ebp - 0xe0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10016832
mov esi, dword [esi]
mov dword [ebp - 0xd4], esi
test esi, esi
je 0x10016820
cmp esi, 0x1fffc
jae 0x10016820
mov edx, dword [ebp - 0xe8]
mov ecx, dword [edx + 4]
mov eax, dword [edx]
mov dword [ebp - 0xe4], ecx
sub ecx, eax
cmp esi, ecx
jae 0x100167b3
add eax, esi
jmp 0x100167fc
jbe 0x100167ff
mov eax, dword [edx + 8]
sub eax, dword [edx]
cmp esi, eax
jbe 0x100167d5
lea eax, [ebp - 0xcd]
mov ecx, edx
push eax
push esi
call fcn.100150d0
mov edx, dword [ebp - 0xe8]
jmp 0x100167ff
sub esi, ecx
push esi
push 0
push dword [ebp - 0xe4]
call fcn.100221c0
mov eax, dword [ebp - 0xe4]
add esp, 0xc
mov edx, dword [ebp - 0xe8]
add eax, esi
mov esi, dword [ebp - 0xd4]
mov dword [edx + 4], eax
push esi
mov esi, dword [ebp - 0xdc]
lea eax, [esi + 4]
push eax
push dword [edx]
call fcn.10021c40
add esp, 0xc
mov byte [ebp - 0xcd], 1
jmp 0x100168b3
mov esi, dword [ebp - 0xdc]
mov byte [ebp - 0xcd], 1
jmp 0x100168b3
cmp dword [ebp - 0x78], 8
lea eax, [ebp - 0x8c]
mov dword [ebp - 0xd8], str.desktop_app_win_DropboxShellExt_dropbox_process_proxy.cc
cmovae eax, dword [ebp - 0x8c]
push eax
lea eax, [ebp - 0xd8]
mov dword [ebp - 0xd4], 0x146
push str.___Timed_out_on_thumbnail__s_n
push eax
call fcn.100123f0
add esp, 0xc
jmp 0x100168b3
mov dword [ebp - 0xd8], str.desktop_app_win_DropboxShellExt_dropbox_process_proxy.cc
mov dword [ebp - 0xd4], 0x14a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x78], 8
lea ecx, [ebp - 0x8c]
push eax
cmovae ecx, dword [ebp - 0x8c]
lea eax, [ebp - 0xd8]
push ecx
push str.___Mapping_error_for__s:__08X_n
push eax
call fcn.100123f0
add esp, 0x10
jmp 0x100168b3
xor esi, esi
mov eax, dword [ebp - 0xe0]
test eax, eax
je 0x100168c4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x100168cf
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0xf4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0xcd], 0
je 0x1001691a
cmp dword [edi + 0x14], 8
mov dword [ebp - 0xd8], str.desktop_app_win_DropboxShellExt_dropbox_process_proxy.cc
mov dword [ebp - 0xd4], 0x158
jb 0x10016900
mov edi, dword [edi]
push edi
lea eax, [ebp - 0xd8]
push str.Received_thumbnail__s_n
push eax
call fcn.100123f0
mov esi, dword [ebp - 0xa8]
jmp 0x1001694e
mov esi, dword [ebp - 0xa8]
cmp dword [edi + 0x14], 8
mov dword [ebp - 0xd8], str.desktop_app_win_DropboxShellExt_dropbox_process_proxy.cc
mov dword [ebp - 0xd4], 0x15b
jb 0x1001693c
mov edi, dword [edi]
push edi
lea eax, [ebp - 0xd8]
push str.___Failed_on_thumbnail__s_n
push eax
call fcn.100123f0
add esp, 0xc
cmp esi, 8
jb 0x10016987
mov ecx, dword [ebp - 0xbc]
lea esi, [esi*2 + 2]
mov eax, ecx
cmp esi, 0x1000
jb 0x1001697d
mov ecx, dword [ecx - 4]
add esi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100169ed
push esi
push ecx
call fcn.100200a4
add esp, 8
mov edx, dword [ebp - 0x78]
cmp edx, 8
jb 0x100169c0
mov ecx, dword [ebp - 0x8c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100169b6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100169ed
push edx
push ecx
call fcn.100200a4
add esp, 8
mov al, byte [ebp - 0xcd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10020811
mov esp, ebp
pop ebp
ret 8
call fcn.100118b0
call fcn.10023a8f
call fcn.10023a8f
int3