Function at 0x54f7ce
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x188
mov esi, esp
mov dword [esi + 0x170], ebp
mov edi, ecx
lea eax, [esi + 0x178]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x54fe40
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
push edi
call fcn.0055f5ee
add esp, 4
mov ebx, eax
cmp eax, 0xfffffffd
jne 0x54fb0d
lea ecx, [esi + 0x10]
push edi
call fcn.0044067a
mov dword [esi + 0x180], 0
mov dword [esi + 8], edi
mov ecx, edi
call fcn.00475582
mov ecx, dword [esi + 8]
push eax
push dword [ecx + 0x44]
call fcn.004d3f2e
test eax, eax
je 0x54f857
mov ecx, eax
call fcn.00401abc
jmp 0x54f859
xor eax, eax
mov edi, dword [esi + 8]
xorps xmm0, xmm0
movups xmmword [esi + 0x44], xmm0
movups xmmword [esi + 0x64], xmm0
movups xmmword [esi + 0x54], xmm0
mov dword [esi + 0x74], 0
mov dword [esi + 0x3c], 0x3c
mov dword [esi + 0x40], eax
lea eax, [esi + 0xac]
mov dword [esi + 0x48], eax
lea ecx, [edi + 0x278]
call fcn.004400ba
test al, al
je 0x54f89c
xor eax, eax
inc eax
mov dword [esi + 4], eax
jmp 0x54f8ad
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], 0x54fbc3
mov dword [esi + 4], 9
lea ecx, [edi + 0x230]
mov dword [esi + 0xc], ecx
call fcn.00402722
test al, al
je 0x54f8e1
mov ecx, dword [esi + 0xc]
call fcn.004afaf0
mov ebx, dword [esi + 4]
or ebx, 0x40
push 0x5c
push eax
lea eax, [esi + 0xac]
push eax
call fcn.005e2280
add esp, 0xc
jmp 0x54f8e4
mov ebx, dword [esi + 4]
mov edi, dword [esi + 8]
lea ecx, [edi + 0x218]
mov dword [esi + 0xc], ecx
call fcn.0045db1c
test al, al
je 0x54f910
mov dword [esi + 4], ebx
push dword [esi + 0xc]
call fcn.00484397
add esp, 4
mov dword [esi + 0x54], eax
mov edi, dword [esi + 8]
mov ebx, dword [esi + 4]
lea ecx, [edi + 0x210]
mov dword [esi + 4], ecx
call fcn.004bad5e
test al, al
jne 0x54f92f
or ebx, 0x400000
mov byte [esi + 0xc3], 0
mov edi, ebx
mov ebx, dword [esi + 4]
mov ecx, ebx
call fcn.004bad7e
mov ecx, edi
or edi, 0x100
test al, al
cmove edi, ecx
mov ecx, ebx
call fcn.004bfe4e
mov ebx, edi
or ebx, 4
test al, al
cmove ebx, edi
mov ecx, dword [esi + 4]
call fcn.004ac4f6
mov edi, eax
and edi, 1
shl edi, 0x11
mov ecx, dword [esi + 4]
call fcn.004ac4f6
and eax, 2
shl eax, 0xd
or eax, edi
or eax, ebx
mov edx, dword [esi + 8]
mov ecx, dword [edx + 0x240]
mov edx, dword [edx + 0x244]
mov edi, ecx
or edi, edx
je 0x54f99b
mov dword [esi + 0x70], ecx
mov dword [esi + 0x74], edx
or eax, 0x2000
mov dword [esi + 0x50], eax
lea ecx, [esi + 0x14]
call fcn.0054fc56
lea eax, [esi + 0x3c]
push eax
call dword [sym.imp.COMDLG32.dll_ChooseFontW]
test eax, eax
je 0x54fa57
mov eax, dword [esi + 0x54]
mov dword [esi + 0x180], 1
push eax
push dword [esi + 0xc]
call fcn.004bf3bf
add esp, 8
lea ecx, [esi + 0x108]
push dword [esi + 8]
lea eax, [esi + 0xac]
push eax
call fcn.004aee88
lea ecx, [esi + 0x1c]
push 0
lea eax, [esi + 0x108]
push eax
call fcn.004ae9c0
mov ecx, dword [esi + 8]
add ecx, 0x238
mov dword [esi + 0x180], 2
lea eax, [esi + 0x1c]
push eax
call fcn.0045d232
lea ecx, [esi + 0x1c]
call fcn.004af4be
lea edi, [esi + 0xc8]
mov ecx, dword [esi + 4]
call fcn.004adec6
mov dword [esi + 0x180], 1
mov ecx, eax
push edi
call fcn.0044a480
movzx edi, byte [esi + 0xc3]
mov ecx, dword [esi + 4]
call fcn.004adec6
mov dword [eax + 0x24], edi
mov ebx, 0x13ec
jmp 0x54fafd
call dword [sym.imp.COMDLG32.dll_CommDlgExtendedError]
mov ebx, 0x13ed
test eax, eax
je 0x54fafd
mov dword [esi + 8], eax
lea ecx, [esi + 0x108]
call fcn.0043fd32
lea ecx, [esi + 0x1c]
call fcn.0043fd32
mov dword [esi + 0x180], 3
lea ecx, [esi + 0x78]
push str.Common_dialog_failed_with_error_code__0lx.
call fcn.00401278
mov dword [esi + 0x180], 4
lea eax, [esi + 0x108]
push eax
lea eax, [esi + 0x1c]
push eax
lea eax, [esi + 0x78]
push eax
call fcn.00445492
add esp, 0xc
lea ecx, [esi + 0x98]
push eax
call fcn.00447d20
push dword [esi + 8]
lea edi, [esi + 0x98]
push edi
call fcn.00401cb0
add esp, 8
mov ecx, edi
call fcn.00440f8a
lea ecx, [esi + 0x78]
call fcn.0043fda0
lea ecx, [esi + 0x1c]
call fcn.0043fda0
lea ecx, [esi + 0x108]
call fcn.0043fda0
mov ebx, 0x13ed
lea ecx, [esi + 0x14]
call fcn.0054fd56
lea ecx, [esi + 0x10]
call fcn.004d72f4
mov eax, dword [esi + 0x178]
mov dword fs:[0], eax
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret