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

Disassembly:
push ebp
push edi
mov eax, 0x3004c
push esi
push ebx
call fcn.004ce940
sub esp, eax
mov ebx, ecx
call fcn.004e32b0
mov esi, dword [ebx + 0x64]
test esi, esi
je 0x537c08
lea eax, [esp + 0x20040]
mov dword [esp + 0x20040], 0
mov dword [esp], eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
sub esp, 4
test eax, eax
js 0x537c08
mov eax, dword [esp + 0x20040]
mov edx, dword [eax]
mov dword [esp], eax
mov dword [esp + 4], esi
call dword [edx + 0x14]
sub esp, 8
mov eax, dword [esp + 0x20040]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
lea edi, [ebx + 0x60]
lea ecx, [ebx + 0x64]
mov dword [ebx + 0x60], 0
xor edx, edx
and ecx, 0xfffffffc
mov eax, edi
mov dword [edi + 0x1c], 0
sub eax, ecx
add eax, 0x20
and eax, 0xfffffffc
mov dword [ecx + edx], 0
add edx, 4
cmp edx, eax
jb 0x537c2b
mov edx, dword [ebx + 0x80]
test edx, edx
je 0x537ca6
mov eax, dword [ebx + 0x84]
sub eax, 1
test eax, eax
mov dword [ebx + 0x84], eax
js 0x537c94
lea esi, [esi]
lea edi, [edi]
lea esi, [edx + eax*4]
mov eax, dword [esi]
test eax, eax
je 0x537c71
mov dword [esp], eax
call fcn.00606c30
mov dword [esi], 0
mov eax, dword [ebx + 0x84]
mov edx, dword [ebx + 0x80]
sub eax, 1
test eax, eax
mov dword [ebx + 0x84], eax
jns 0x537c60
test edx, edx
je 0x537c9c
mov dword [esp], edx
call fcn.00606c30
mov dword [ebx + 0x80], 0
mov dword [ebx + 0x84], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebp, dword [ebx + 0x8c]
mov dword [ebx + 0x60], eax
test ebp, ebp
je 0x537ed0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebp
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
call esi
mov edx, eax
sub esp, 0x18
cmp edx, dword [0x621ad4]
mov eax, dword [0x621ad0]
jg 0x537f90
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebp
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call esi
mov eax, dword [0x621ad0]
sub esp, 0x18
mov dword [esp + 8], 0x100
mov dword [esp], 0x622800
mov dword [esp + 4], eax
call sub.msvcrt.dll_wcsncpy
xor edx, edx
mov word [0x6229fe], dx
mov dword [ebx + 0x6c], 0x622800
cmp dword [ebx], 1
mov edx, 0x51
mov eax, 0x251
mov ebp, dword [ebx + 0x88]
cmovne eax, edx
test ebp, ebp
mov dword [ebx + 0x70], eax
lea eax, [esp + 0x40]
mov dword [ebx + 0x68], eax
je 0x537ec0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebp
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
call esi
mov edx, eax
sub esp, 0x18
cmp edx, dword [0x621ad4]
mov eax, dword [0x621ad0]
jg 0x537fc0
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebp
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call esi
mov eax, dword [0x621ad0]
sub esp, 0x18
lea esi, [esp + 0x10040]
mov dword [esp + 8], 0x8000
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.msvcrt.dll_wcsncpy
xor eax, eax
mov dword [ebx + 0x78], esi
mov word [esp + 0x2003e], ax
mov dword [ebx + 0x74], 0x4f6100
mov dword [esp], edi
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
mov esi, eax
sub esp, 4
mov eax, 1
test esi, esi
je 0x537eb2
lea edi, [esp + 0x20040]
mov dword [esp], esi
mov dword [esp + 4], edi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
sub esp, 8
test eax, eax
jne 0x537ee0
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], 0
mov dword [esp], eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
sub esp, 4
test eax, eax
js 0x537ea2
mov eax, dword [esp + 0x3c]
mov edx, dword [eax]
mov dword [esp], eax
mov dword [esp + 4], esi
call dword [edx + 0x14]
sub esp, 8
mov eax, dword [esp + 0x3c]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov dword [esp], edi
call sub.msvcrt.dll_wcslen
test eax, eax
sete al
movzx eax, al
add esp, 0x3004c
pop ebx
pop esi
pop edi
pop ebp
mov dword [ebx + 0x78], 0
jmp 0x537e2b
mov dword [ebx + 0x6c], 0
jmp 0x537d65
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
mov ebp, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
call ebp
mov edx, eax
sub esp, 0x20
cmp edx, dword [0x621adc]
mov eax, dword [0x621ad8]
jg 0x537fec
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call ebp
mov eax, dword [0x621ad8]
sub esp, 0x20
mov ecx, ebx
mov dword [esp], eax
call fcn.00537190
sub esp, 4
jmp 0x537e64
lea eax, [edx + edx]
mov dword [0x621ad4], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 4], eax
mov eax, dword [0x621ad0]
mov dword [esp], eax
call sub.msvcrt.dll_realloc
mov edx, dword [esp + 0x2c]
mov dword [0x621ad0], eax
jmp 0x537d10
lea eax, [edx + edx]
mov dword [0x621ad4], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 4], eax
mov eax, dword [0x621ad0]
mov dword [esp], eax
call sub.msvcrt.dll_realloc
mov edx, dword [esp + 0x2c]
mov dword [0x621ad0], eax
jmp 0x537dd6
mov eax, dword [0x621ad8]
mov dword [esp + 4], edx
mov dword [0x621adc], edx
mov dword [esp + 0x2c], edx
mov dword [esp], eax
call sub.msvcrt.dll_realloc
mov edx, dword [esp + 0x2c]
mov dword [0x621ad8], eax
jmp 0x537f39