Function at 0x6904c090
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x6c
mov eax, dword [ebp + 8]
mov dword [esp + 4], str.FileOpenDlgInfos
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetPropW]
mov edi, eax
movzx eax, word [0x6908d00c]
sub esp, 8
test ax, ax
je 0x6904c2ec
mov word [ebp - 0x2c], ax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x1c], 1
test byte [0x6907604c], 8
jne 0x6904c307
mov eax, dword [edi + 0x3c]
lea ecx, [ebp - 0x38]
mov edx, dword [eax]
mov dword [esp + 8], ecx
lea ecx, [ebp - 0x2c]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
test eax, eax
js 0x6904c2d3
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GlobalLock]
sub esp, 4
mov ebx, dword [eax]
mov dword [ebp - 0x48], eax
mov dword [esp + 8], 0x20e
mov dword [esp + 4], 8
mov eax, dword fs:[0x18]
mov dword [ebp - 0x5c], eax
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x4c], ebx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x3c], eax
sub esp, 0xc
test eax, eax
je 0x6904c29a
test ebx, ebx
je 0x6904c29a
mov dword [ebp - 0x50], 0x107
xor ecx, ecx
xor ebx, ebx
mov dword [ebp - 0x54], 0
lea esi, [esi]
mov eax, dword [ebp - 0x48]
add ebx, 1
mov dword [ebp - 0x40], ecx
mov edx, dword [eax + ebx*4 + 4]
add edx, eax
mov eax, dword [edi + 0x34]
mov dword [ebp - 0x44], edx
call fcn.69045510
mov ecx, dword [ebp - 0x40]
test eax, eax
jne 0x6904c260
mov esi, dword [ebp - 0x50]
lea eax, [ecx + 0x107]
mov edx, dword [ebp - 0x44]
cmp eax, esi
jbe 0x6904c1fe
mov eax, esi
mov dword [esp + 4], 8
add esi, esi
shl eax, 2
mov dword [ebp - 0x44], ecx
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], edx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapReAlloc]
sub esp, 0x10
test eax, eax
je 0x6904c29a
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
lea esi, [ecx + 1]
add dword [ebp - 0x54], 1
mov word [eax + ecx*2], 0x22
lea ecx, [eax + ecx*2 + 2]
mov eax, dword [edi + 0x34]
mov dword [ebp - 0x40], ecx
call fcn.690457d0
mov ecx, dword [ebp - 0x40]
cmp word [ecx], 0
je 0x6904c2e0
mov eax, ecx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x6904c230
sub eax, ecx
sar eax, 1
add esi, eax
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x3c]
lea ecx, [eax + esi*2]
mov eax, 0x22
mov edx, 0x20
mov word [ecx], ax
mov eax, dword [ebp - 0x3c]
lea ecx, [esi + 2]
mov word [eax + esi*2 + 2], dx
cmp ebx, dword [ebp - 0x4c]
jne 0x6904c180
mov ebx, dword [ebp - 0x54]
test ebx, ebx
je 0x6904c29a
mov eax, dword [ebp - 0x3c]
cmp ebx, 1
je 0x6904c389
mov dword [esp + 4], eax
mov eax, dword [edi + 0x60]
mov dword [esp], eax
call dword [sym.imp.user32.dll_SetWindowTextW]
mov eax, dword [edi]
sub esp, 8
cmp dword [eax], 0x4c
je 0x6904c353
mov edi, dword [ebp - 0x3c]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], edi
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [ebp - 0x30]
sub esp, 0xc
test eax, eax
je 0x6904c330
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x58], 0
jmp 0x6904c248
mov dword [esp], str.Shell_IDList_Array
call dword [sym.imp.user32.dll_RegisterClipboardFormatA]
mov word [0x6908d00c], ax
sub esp, 4
jmp 0x6904c0c2
mov dword [esp + 0xc], str._nSoftwareMicrosoftWindowsCurrentVersionExplorerComDlg32LastVisitedMRU
mov dword [esp + 8], str.FILEDLG95_FILENAME_FillFromSelection
mov dword [esp + 4], 0x6907604c
mov dword [esp], 3
call fcn.69044e10
jmp 0x6904c0ef
mov ebx, dword [ebp - 0x34]
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GlobalUnlock]
sub esp, 4
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GlobalFree]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [eax + 0x34], 0xe0
je 0x6904c29a
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], 0
mov dword [esp + 4], 0xb1
mov eax, dword [edi + 0x60]
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
jmp 0x6904c29a
mov ebx, dword [ebp - 0x58]
add eax, 2
xor edx, edx
mov word [eax + ebx*2], dx
jmp 0x6904c27c