Function at 0x4103b0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x1a8
push ebx
mov ebx, dword [esp + 0x1b0]
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_GetParent]
push edi
xor edi, edi
push ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], 0x40020000
mov dword [esp + 0x2c], edi
call esi
push eax
call dword [sym.imp.USER32.dll_SetCapture]
push 0x7f02
push edi
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
push ebx
call esi
mov ebx, dword [esp + 0x1c0]
mov ebp, eax
cmp dword [esp + 0x1c8], 0xffff0000
jne 0x410555
mov eax, dword [0x422070]
push 0x10
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov esi, eax
cmp esi, edi
je 0x410783
lea edx, [esp + 0x10]
push edx
push edi
push ebp
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov eax, dword [esp + 0x10]
mov ecx, dword [0x422070]
push eax
push ecx
call fcn.0040b440
mov dword [esi + 4], eax
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1cc]
push edx
push eax
call fcn.0040b3d0
mov dword [esi + 8], eax
mov dword [esi], ebx
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0xc4]
mov dword [esi + 0xc], ecx
mov eax, dword [esp + 0x20]
push edx
push edi
push eax
push ebx
call fcn.0040b260
add esp, 0x20
test eax, eax
je 0x410783
mov ecx, dword [ebx]
push ebx
call dword [ecx + 4]
mov edx, dword [ebx]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x10]
push eax
push ecx
push 1
push ebx
call dword [edx + 0x24]
test dword [esp + 0x1c], 0x20000
je 0x4104c6
mov dword [esp + 0x38], 0xf00
mov dword [esp + 0x34], 0x100
lea edx, [esp + 0xb4]
mov dword [esp + 0x40], 0x104
mov dword [esp + 0x3c], edx
mov dword [esp + 0x2c], 0x27
mov ecx, dword [esi + 8]
lea eax, [esp + 0x2c]
push eax
push ecx
call fcn.0040b230
mov eax, dword [esp + 0x1c4]
mov dword [esp + 0x58], esi
mov ecx, 0xa
lea esi, [esp + 0x34]
lea edi, [esp + 0x68]
add esp, 8
rep movsd dword es:[edi], dword [esi]
lea edx, [esp + 0x58]
xor esi, esi
push edx
push esi
push 0x1100
push eax
mov dword [esp + 0x6c], 0xffff0000
mov dword [esp + 0x68], esi
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x410545
mov ecx, dword [0x422070]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x14]
mov dword [esp + 0x10], esi
mov dword [0x422074], 1
xor edi, edi
mov eax, dword [ebx]
lea ecx, [esp + 0x18]
push ecx
push 0xe0
push ebp
push ebx
call dword [eax + 0x10]
test eax, eax
jl 0x410747
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x14]
mov edx, dword [eax]
push ecx
push 1
push eax
call dword [edx + 0xc]
test eax, eax
jne 0x410727
mov ebp, 0xe0020000
mov edx, dword [ebx]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push ecx
push 1
push ebx
mov dword [esp + 0x24], ebp
call dword [edx + 0x24]
mov eax, dword [esp + 0x14]
test eax, 0x20000000
je 0x410709
test eax, 0xc0000000
je 0x410709
mov eax, dword [esp + 0x10]
lea edx, [esp + 0xb4]
push edx
push edi
push eax
push ebx
call fcn.0040b260
add esp, 0x10
test eax, eax
je 0x410783
mov eax, dword [0x422070]
push 0x10
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov esi, eax
cmp esi, edi
je 0x410783
mov dword [esi], ebx
mov edx, dword [esp + 0x10]
mov eax, dword [0x422070]
mov edi, 1
push edx
push eax
mov dword [esp + 0x30], edi
call fcn.0040b440
mov edx, dword [esp + 0x1cc]
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x18]
push ecx
push edx
call fcn.0040b3d0
mov dword [esi + 8], eax
mov eax, dword [esp + 0x24]
add esp, 0x10
mov dword [esi + 0xc], eax
mov ecx, dword [ebx]
push ebx
call dword [ecx + 4]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x2c], 0x27
test eax, 0x80000000
je 0x410659
mov dword [esp + 0x4c], edi
mov dword [esp + 0x2c], 0x67
test eax, 0x20000
je 0x41067a
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x38], 0xf00
or al, 8
mov dword [esp + 0x34], 0x100
mov dword [esp + 0x2c], eax
lea edx, [esp + 0xb4]
mov dword [esp + 0x40], 0x104
mov dword [esp + 0x3c], edx
mov ecx, dword [esi + 8]
lea eax, [esp + 0x2c]
push eax
push ecx
call fcn.0040b230
mov eax, dword [0x422074]
mov dword [esp + 0x58], esi
add esp, 8
mov ecx, 0xa
lea esi, [esp + 0x2c]
lea edi, [esp + 0x60]
test eax, eax
rep movsd dword es:[edi], dword [esi]
je 0x4106ce
mov dword [esp + 0x5c], 0xffff0001
mov dword [0x422074], 0
jmp 0x4106d6
mov edx, dword [esp + 0x20]
mov dword [esp + 0x5c], edx
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4106e5
mov eax, dword [esp + 0x1c8]
mov edx, dword [esp + 0x1bc]
lea ecx, [esp + 0x58]
push ecx
push 0
push 0x1100
push edx
mov dword [esp + 0x68], eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [esp + 0x20], eax
xor edi, edi
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x54]
push edx
lea edx, [esp + 0x14]
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x410591
mov ecx, dword [esp + 0x10]
cmp ecx, edi
je 0x41073b
mov eax, dword [0x422070]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], edi
cmp eax, edi
jne 0x410783
mov edx, dword [esp + 0x1bc]
mov eax, dword [esp + 0x1c8]
lea ecx, [esp + 0x8c]
mov dword [esp + 0x90], eax
push ecx
push edi
push 0x110d
push edx
mov dword [esp + 0x9c], 0x40
mov dword [esp + 0xbc], edi
call dword [sym.imp.USER32.dll_SendMessageA]
call dword [sym.imp.USER32.dll_ReleaseCapture]
push 0x7f00
push edi
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x4107aa
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x10]
cmp ecx, edi
pop edi
pop esi
pop ebp
pop ebx
je 0x4107c2
mov eax, dword [0x422070]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
add esp, 0x1a8
ret