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

Disassembly:
sub esp, 0x170
push ebx
push ebp
push esi
or dword [esp + 0x28], 0xffffffff
push edi
mov esi, ecx
push 0x13
xor eax, eax
pop ecx
lea edi, [esp + 0x30]
push dword [esi + 0x118]
xor ebx, ebx
rep stosd dword es:[edi], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x34], 0x4c
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
mov dword [esp + 0x1c], eax
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x217a861f
mov dword [esp + 0x3c], ebx
movsx eax, word [esi + 0xea]
cmp dword [esi + 0x110], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], eax
jne 0x217a83a5
push 0x217a42c0
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
cmp eax, ebx
mov dword [esi + 0x110], eax
je 0x217a8582
push ebx
push ebx
push ebx
push ebx
push dword [esi + 0x110]
call edi
push eax
push dword [esi + 0x110]
push ebx
push ebx
call ebp
mov dword [esp + 0x10], eax
movsx eax, word [esi + 0xe8]
push eax
push ebx
push dword [0x217b3038]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
movsx ecx, word [esi + 0xe8]
cmp dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jle 0x217a83ea
mov dword [esp + 0x10], ecx
cmp eax, ebx
je 0x217a8582
mov ecx, dword [esp + 0x10]
push ebx
push ebx
push ecx
push eax
mov byte [eax + ecx], bl
push dword [esi + 0x110]
call edi
push eax
push dword [esi + 0x110]
push ebx
push ebx
call ebp
test dword [esi + 0xf8], 0x80200
je 0x217a8449
mov edx, dword [esp + 0x10]
xor eax, eax
cmp edx, ebx
jle 0x217a8449
lea ecx, [edx - 2]
cmp eax, ecx
jne 0x217a8437
mov ecx, dword [esp + 0x14]
cmp byte [eax + ecx + 1], bl
je 0x217a8449
mov ecx, dword [esp + 0x14]
add ecx, eax
cmp byte [ecx], bl
jne 0x217a8444
mov byte [ecx], 0x20
inc eax
cmp eax, edx
jl 0x217a8426
cmp dword [esi + 0x120], ebx
jne 0x217a846a
push 0x217a42c0
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
cmp eax, ebx
mov dword [esi + 0x120], eax
je 0x217a8582
push ebx
push ebx
push ebx
push ebx
push dword [esi + 0x120]
call edi
push eax
push dword [esi + 0x120]
push ebx
push ebx
call ebp
mov dword [esp + 0x10], eax
inc eax
push eax
push ebx
push dword [0x217b3038]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [esp + 0x28], eax
je 0x217a8582
mov ecx, dword [esp + 0x10]
push ebx
push ebx
push ecx
push eax
mov byte [ecx + eax], bl
push dword [esi + 0x120]
call edi
push eax
push dword [esi + 0x120]
push ebx
push ebx
call ebp
cmp dword [esi + 0x10c], ebx
jne 0x217a84df
push 0x217a42c0
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
cmp eax, ebx
mov dword [esi + 0x10c], eax
je 0x217a8582
push ebx
push ebx
push ebx
push ebx
push dword [esi + 0x10c]
call edi
push eax
push dword [esi + 0x10c]
push ebx
push ebx
call ebp
mov dword [esp + 0x10], eax
inc eax
push eax
push ebx
push dword [0x217b3038]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [esp + 0x24], eax
je 0x217a8582
mov ecx, dword [esp + 0x10]
push ebx
push ebx
push ecx
push eax
mov byte [ecx + eax], bl
push dword [esi + 0x10c]
call edi
push eax
push dword [esi + 0x10c]
push ebx
push ebx
call ebp
cmp dword [esi + 0x11c], ebx
jne 0x217a854c
push 0x217a42c0
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
cmp eax, ebx
mov dword [esi + 0x11c], eax
je 0x217a8582
push ebx
push ebx
push ebx
push ebx
push dword [esi + 0x11c]
call edi
push eax
push dword [esi + 0x11c]
push ebx
push ebx
call ebp
mov dword [esp + 0x10], eax
inc eax
push eax
push ebx
push dword [0x217b3038]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [esp + 0x20], eax
jne 0x217a86ee
mov edx, dword [esi]
mov eax, 0x7ff0
push eax
push eax
push 0x800a7ff0
mov ecx, esi
call dword [edx + 0x30]
mov edi, eax
cmp dword [esp + 0x1c], ebx
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
je 0x217a85b0
push dword [esp + 0x1c]
push ebx
push dword [0x217b3038]
call ebp
cmp dword [esp + 0x14], ebx
je 0x217a85c3
push dword [esp + 0x14]
push ebx
push dword [0x217b3038]
call ebp
cmp dword [esp + 0x28], ebx
je 0x217a85d6
push dword [esp + 0x28]
push ebx
push dword [0x217b3038]
call ebp
cmp dword [esp + 0x20], ebx
je 0x217a85e9
push dword [esp + 0x20]
push ebx
push dword [0x217b3038]
call ebp
cmp dword [esp + 0x24], ebx
je 0x217a85fc
push dword [esp + 0x24]
push ebx
push dword [0x217b3038]
call ebp
push dword [esp + 0x18]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x64]
mov dword [esi + 0xf8], eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x170
ret 4
mov eax, dword [esp + 0x18]
cmp word [eax], 0x7c
jne 0x217a8674
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push dword [esi + 0x118]
call edi
add eax, 4
push eax
push ebx
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
push 2
push 0x217a7490
push eax
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push dword [esi + 0x118]
call edi
shl eax, 1
push eax
mov eax, dword [esp + 0x1c]
push dword [esi + 0x118]
add eax, 2
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push ebx
push ebx
push ebx
push ebx
push dword [esp + 0x28]
call edi
push eax
push dword [esp + 0x2c]
push ebx
push ebx
call ebp
mov dword [esp + 0x10], eax
add eax, 3
push eax
push ebx
push dword [0x217b3038]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [esp + 0x1c], eax
je 0x217a8582
mov ecx, dword [esp + 0x10]
push ebx
push ebx
push ecx
push eax
mov byte [ecx + eax], bl
push dword [esp + 0x28]
call edi
push eax
push dword [esp + 0x2c]
push ebx
push ebx
call ebp
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x3c], eax
cmp byte [eax], bl
je 0x217a86e1
cmp byte [eax], 0x7c
jne 0x217a86d8
mov byte [eax], bl
inc eax
jmp 0x217a86ca
push eax
call dword [sym.imp.USER32.dll_CharNextA]
jmp 0x217a86ca
mov byte [eax], bl
inc eax
mov byte [eax], bl
mov byte [eax + 1], bl
jmp 0x217a836d
mov ecx, dword [esp + 0x10]
push ebx
push ebx
push ecx
push eax
mov byte [ecx + eax], bl
push dword [esi + 0x11c]
call edi
push eax
push dword [esi + 0x11c]
push ebx
push ebx
call ebp
movsx eax, word [esi + 0xe8]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x7c]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x60], eax
mov eax, dword [esi + 0xf8]
mov ebp, dword [esp + 0x14]
and al, 0x1f
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x34]
push eax
push 1
mov ecx, esi
mov byte [esp + 0x84], bl
mov dword [esp + 0x54], ebp
mov dword [esp + 0x60], 0x104
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
call fcn.217a8dbb
xor edi, edi
cmp word [esp + 0x184], 1
lea eax, [esp + 0x30]
push eax
jne 0x217a8830
call sub.comdlg32.dll_GetOpenFileNameA
test eax, eax
jne 0x217a879b
mov edi, 0x80004005
push ebx
push ebx
mov ecx, esi
call fcn.217a8dbb
cmp edi, ebx
jl 0x217a8597
push dword [esi + 0x114]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call edi
push dword [esi + 0x110]
call edi
mov eax, dword [esi + 0xf8]
mov dword [esi + 0x110], ebx
test eax, 0x80000
je 0x217a884e
test ah, 2
je 0x217a884e
mov ecx, dword [esp + 0x50]
xor eax, eax
lea edx, [ecx - 1]
cmp edx, ebx
jle 0x217a87fb
mov ecx, dword [esp + 0x4c]
cmp byte [eax + ecx], bl
jne 0x217a87f6
cmp byte [eax + ecx + 1], bl
je 0x217a883a
inc eax
cmp eax, edx
jl 0x217a87eb
cmp dword [esp + 0x2c], ebx
jle 0x217a884e
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push dword [esp + 0x34]
push ebp
push ebx
push ebx
call edi
mov ebp, eax
push ebp
push ebx
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
cmp eax, ebx
mov dword [esi + 0x110], eax
jne 0x217a8840
mov edi, 0x8007000e
jmp 0x217a8597
call sub.comdlg32.dll_GetSaveFileNameA
jmp 0x217a8792
mov dword [esp + 0x2c], eax
jmp 0x217a87fb
push ebp
push eax
push dword [esp + 0x34]
push dword [esp + 0x20]
push ebx
push ebx
call edi
cmp dword [esi + 0x110], ebx
jne 0x217a8868
push ebx
push dword [esp + 0x18]
call fcn.217ac56c
pop ecx
mov dword [esi + 0x110], eax
pop ecx
lea eax, [esp + 0x7c]
push ebx
push eax
call fcn.217ac56c
mov dword [esi + 0x114], eax
mov ax, word [esp + 0x50]
pop ecx
mov word [esi + 0xea], ax
pop ecx
xor edi, edi
jmp 0x217a8597