Function at 0x69054b90
Capabilities:
Access peb ldr_data
Extract resource via kernel32 functions
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
mov ebx, eax
mov eax, dword fs:[0x18]
sub esp, 0x6c
mov dword [ebp - 0x50], ecx
mov dword [esp + 8], 0x24
mov dword [esp + 4], 8
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x4c], eax
call eax
sub esp, 0xc
mov edi, eax
test byte [0x6907605c], 8
jne 0x69054fc8
test edi, edi
je 0x69054cbf
xor eax, eax
cmp esi, 2
mov ecx, dword [ebp - 0x50]
mov dword [edi + 4], 0
sete al
mov dword [edi + 0x10], ebx
mov esi, ebx
mov dword [edi + 0x18], eax
mov eax, dword [ebx + 0x34]
mov edx, eax
and edx, 0x20
test ecx, ecx
je 0x69054cd0
mov dword [edi + 0x20], 0
xor ecx, ecx
mov dword [edi + 0x1c], ebx
test edx, edx
je 0x69054c2b
mov ebx, dword [ebx + 0x44]
test ebx, ebx
je 0x69054c2b
mov dword [edi + 4], 1
test al, 0x80
jne 0x69054f75
test al, 0x40
je 0x69054f80
mov dword [esp + 8], 5
test ecx, ecx
je 0x69055100
mov eax, dword [ecx + 0x48]
mov dword [esp + 4], eax
mov eax, dword [ecx + 8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindResourceA]
sub esp, 0xc
test eax, eax
je 0x690550e0
mov dword [esp + 4], eax
mov eax, dword [esi + 8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LoadResource]
sub esp, 8
test eax, eax
je 0x690550c0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LockResource]
mov dword [edi + 0x14], eax
sub esp, 4
test eax, eax
je 0x690550c0
mov ebx, dword [sym.imp.user32.dll_RegisterWindowMessageA]
mov dword [esp], str.commdlg_LBSelChangedNotify
call ebx
sub esp, 4
mov dword [edi + 8], eax
mov dword [esp], str.commdlg_FileNameOK
call ebx
mov dword [edi + 0xc], eax
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [edi + 0x20], ebx
test edx, edx
je 0x69054ce5
mov edx, dword [ebx + 0x44]
test edx, edx
je 0x69054ce5
mov dword [edi + 4], 1
mov edx, dword [ebx]
mov dword [esp + 4], 8
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x4c]
call eax
mov esi, dword [edi + 0x20]
mov dword [edi + 0x1c], eax
mov ebx, eax
sub esp, 0xc
mov eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x54], eax
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 8]
mov dword [ebx + 8], eax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x69054d39
xor edx, edx
call fcn.69052fc0
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
test eax, eax
je 0x69054d4c
cmp byte [eax], 0
jne 0x690550f0
mov dword [ebx + 0x14], edx
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x18], eax
mov edx, dword [esi + 0x20]
mov dword [ebx + 0x20], edx
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x50], eax
test eax, eax
je 0x690550b0
test edx, edx
je 0x690550b0
lea ecx, [edx + edx]
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x58], edx
mov edx, dword [ebp - 0x4c]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edx
sub esp, 0xc
mov ecx, eax
test eax, eax
je 0x69054dd8
mov edx, dword [ebp - 0x58]
mov dword [esp + 0x10], eax
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x50]
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ecx, dword [ebp - 0x58]
sub esp, 0x18
mov dword [ebx + 0x1c], ecx
mov edx, dword [esi + 0x28]
mov dword [ebx + 0x28], edx
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x50], eax
test eax, eax
je 0x690550a0
test edx, edx
je 0x690550a0
lea ecx, [edx + edx]
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x58], edx
mov edx, dword [ebp - 0x4c]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edx
sub esp, 0xc
mov ecx, eax
test eax, eax
je 0x69054e5e
mov edx, dword [ebp - 0x58]
mov dword [esp + 0x10], eax
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x50]
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ecx, dword [ebp - 0x58]
sub esp, 0x18
mov dword [ebx + 0x24], ecx
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x69054e81
mov dword [esp + 4], eax
lea eax, [ebp - 0x40]
mov dword [esp], eax
call dword [sym.imp.ntdll.dll_RtlCreateUnicodeStringFromAsciiz]
mov eax, dword [ebp - 0x3c]
sub esp, 8
mov dword [ebx + 0x2c], eax
mov eax, dword [esi + 0x30]
test eax, eax
je 0x69054ff8
mov dword [esp + 4], eax
lea eax, [ebp - 0x40]
mov dword [esp], eax
call dword [sym.imp.ntdll.dll_RtlCreateUnicodeStringFromAsciiz]
mov eax, dword [ebp - 0x3c]
sub esp, 8
mov dword [ebx + 0x30], eax
mov eax, dword [esi + 0x34]
mov dword [ebx + 0x34], eax
movzx eax, word [esi + 0x38]
mov word [ebx + 0x38], ax
movzx eax, word [esi + 0x3a]
mov word [ebx + 0x3a], ax
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x69054f2f
mov dword [esp + 8], 6
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x50], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x4c]
call eax
sub esp, 0xc
test eax, eax
je 0x6905514a
mov ecx, dword [ebp - 0x50]
mov dword [esp + 0x14], 3
mov dword [esp + 0x10], eax
mov dword [esp + 8], ecx
mov dword [ebp - 0x4c], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov edx, dword [ebp - 0x4c]
sub esp, 0x18
mov ecx, edx
mov dword [ebx + 0x3c], ecx
test byte [esi + 0x34], 0x40
je 0x69054f4d
mov eax, dword [esi + 0x48]
test eax, eax
je 0x69054f4d
mov edx, eax
shr edx, 0x10
jne 0x69055120
mov dword [ebx + 0x48], eax
cmp dword [ebx], 0x4c
jbe 0x69054f64
mov eax, dword [esi + 0x4c]
mov dword [ebx + 0x4c], eax
mov eax, dword [esi + 0x50]
mov dword [ebx + 0x50], eax
mov eax, dword [esi + 0x54]
mov dword [ebx + 0x54], eax
mov esi, dword [edi + 0x1c]
mov ecx, dword [edi + 0x20]
mov eax, dword [esi + 0x34]
test al, 0x80
je 0x69054c33
mov eax, dword [esi + 8]
jmp 0x69054c84
mov eax, dword [edi + 0x18]
mov edx, str.SAVE_FILE
mov dword [esp + 8], 5
test eax, eax
mov eax, str.OPEN_FILE
cmove eax, edx
mov dword [esp + 4], eax
mov eax, dword [0x6908d004]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindResourceA]
sub esp, 0xc
test eax, eax
je 0x690550e0
mov dword [esp + 4], eax
mov eax, dword [0x6908d004]
jmp 0x69054c70
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.alloc_private_buf__p_n
mov dword [esp + 8], str.FD31_AllocPrivate
mov dword [esp + 4], 0x6907605c
mov dword [esp], 3
call fcn.69052bd0
jmp 0x69054bdb
cmp dword [ebp - 0x54], 1
mov eax, 0x4b4
lea edx, [ebp - 0x38]
mov dword [esp + 0xc], 0x10
sbb eax, 0xffffffff
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [0x6908d004]
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadStringW]
sub esp, 0x10
cmp word [ebp - 0x38], 0
je 0x69055140
lea ecx, [ebp - 0x38]
lea esi, [esi]
lea esi, [esi]
add ecx, 2
cmp word [ecx], 0
jne 0x69055040
lea eax, [ebp - 0x38]
sub ecx, eax
add ecx, 2
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x50], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x4c]
call eax
mov ecx, dword [ebp - 0x50]
mov edx, eax
sub esp, 0xc
lea eax, [ebp - 0x38]
mov dword [esp], edx
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [ebp - 0x50], edx
call sub.ucrtbase.dll_memcpy
mov edx, dword [ebp - 0x50]
mov dword [ebx + 0x30], edx
jmp 0x69054ea5
xor ecx, ecx
jmp 0x69054e5e
xor ecx, ecx
jmp 0x69054dd8
mov dword [esp], 7
call fcn.69041890
mov eax, edi
xor edi, edi
call fcn.690549b0
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 6
call fcn.69041890
jmp 0x690550cc
call fcn.69052fc0
mov dword [ebx + 0x10], eax
mov edx, dword [esi + 0x14]
jmp 0x69054d4c
mov eax, dword [esi + 0x48]
mov dword [esp + 4], eax
mov eax, dword [esi + 8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindResourceW]
sub esp, 0xc
jmp 0x69054c61
mov dword [esp + 4], eax
lea eax, [ebp - 0x40]
mov dword [esp], eax
call dword [sym.imp.ntdll.dll_RtlCreateUnicodeStringFromAsciiz]
mov eax, dword [ebp - 0x3c]
sub esp, 8
mov dword [ebx + 0x48], eax
jmp 0x69054f4d
mov ecx, 2
jmp 0x69055051
xor ecx, ecx
jmp 0x69054f2f