Function at 0x4b7a30
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5029f1
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x5e0f00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x90], esi
mov dword [ebp - 0x94], eax
mov dword [ebp - 4], 0
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x80], 0
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov byte [ebp - 0xa8], 0
cmp eax, ecx
je 0x4b7aa1
push esi
push ecx
push eax
call fcn.00422f10
mov eax, dword [esi]
add esp, 0xc
mov dword [esi + 4], eax
lea eax, [ebp - 0x90]
mov dword [ebp - 0xb8], eax
lea eax, [ebp - 0x11]
mov dword [ebp - 0xb4], eax
push 2
push 0
mov byte [ebp - 4], 2
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x4b7b07
push 0x5b6ab4
push eax
push 4
sub esp, 0xc
mov dword [ebp - 0x20], str.S:KBT_third_partykbtkbt_platform_win32.cpp
mov eax, esp
mov dword [ebp - 0x1c], str.ShowFileDialog
movq xmm0, qword [ebp - 0x20]
movq qword [eax], xmm0
mov dword [eax + 8], 0x5ec
call fcn.004a4b70
add esp, 0x18
mov byte [ebp - 0xa8], 0
jmp 0x4b8442
test byte [ebp - 0x94], 1
mov ecx, 0x5b8360
mov eax, 0x5b8350
mov byte [ebp - 4], 3
cmove eax, ecx
movups xmm0, xmmword [eax]
lea eax, [ebp - 0x80]
push eax
push 0x5b6a94
push 0x17
push 0
lea eax, [ebp - 0x78]
push eax
movups xmmword [ebp - 0x78], xmm0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x4b7b80
push str.CoCreateInstance_IFileDialog
push eax
push 4
sub esp, 0xc
mov dword [ebp - 0x20], str.S:KBT_third_partykbtkbt_platform_win32.cpp
mov eax, esp
mov dword [ebp - 0x1c], str.ShowFileDialog
movq xmm0, qword [ebp - 0x20]
movq qword [eax], xmm0
mov dword [eax + 8], 0x5f6
call fcn.004a4b70
add esp, 0x18
mov byte [ebp - 0xa8], 0
jmp 0x4b843c
lea eax, [ebp - 0x80]
mov dword [ebp - 0xb0], eax
mov edx, dword [ebp + 0x38]
mov byte [ebp - 4], 4
test edx, edx
je 0x4b7f60
xor esi, esi
xor edi, edi
xorps xmm0, xmm0
mov dword [ebp - 0x7c], esi
xor eax, eax
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 5
nop dword [eax]
cmp dword [ebp + 0x3c], 8
lea ecx, [ebp + 0x28]
lea eax, [esi + esi]
cmovae ecx, dword [ebp + 0x28]
setae byte [ebp - 0xa1]
mov dword [ebp - 0x8c], eax
cmp esi, edx
jae 0x4b7c02
mov eax, edx
sub eax, esi
lea esi, [ecx + esi*2]
je 0x4b7c02
nop dword [eax + eax]
cmp word [esi], 0x7c
je 0x4b7d6b
add esi, 2
sub eax, 1
jne 0x4b7bf0
or esi, 0xffffffff
mov eax, dword [ebp - 0x7c]
cmp esi, edx
mov ecx, esi
mov dword [ebp - 0x50], 0
cmovae ecx, edx
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x3c], 0
cmp edx, eax
jb 0x4b8512
sub edx, eax
lea eax, [ebp + 0x28]
cmp edx, ecx
cmovb ecx, edx
cmp byte [ebp - 0xa1], 0
push ecx
cmovne eax, dword [ebp + 0x28]
lea ecx, [ebp - 0x50]
add eax, dword [ebp - 0x8c]
push eax
call fcn.00422d80
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 6
push eax
call fcn.004c1010
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x50]
add esp, 4
cmp dword [ebp - 0x3c], 8
cmovae edx, dword [ebp - 0x50]
setae byte [ebp - 0xa1]
test eax, eax
je 0x4b7c94
mov ecx, edx
cmp word [ecx], 0x3a
je 0x4b7d7c
add ecx, 2
sub eax, 1
jne 0x4b7c82
or ecx, 0xffffffff
cmp dword [ebp - 0x40], ecx
lea eax, [ecx + 1]
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x50]
cmovb ecx, dword [ebp - 0x40]
cmp byte [ebp - 0xa1], 0
push ecx
cmovne eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x38]
push eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
call fcn.00422d80
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x8c]
sub edx, ecx
mov byte [ebp - 4], 7
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
cmp dword [ebp - 0x40], ecx
jb 0x4b8512
cmp dword [ebp - 0x3c], 8
lea eax, [ebp - 0x50]
push edx
cmovae eax, dword [ebp - 0x50]
lea eax, [eax + ecx*2]
push eax
lea ecx, [ebp - 0x68]
call fcn.00422d80
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 8
cmovae eax, dword [ebp - 0x38]
push eax
call fcn.004e9984
cmp dword [ebp - 0x54], 8
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x9c], eax
cmovae ecx, dword [ebp - 0x68]
push ecx
call fcn.004e9984
add esp, 8
mov ecx, eax
mov dword [ebp - 0x98], ecx
cmp edi, dword [ebp - 0x84]
je 0x4b7d8d
mov eax, dword [ebp - 0x9c]
mov dword [edi], eax
mov dword [edi + 4], ecx
add edi, 8
mov dword [ebp - 0x1c], edi
jmp 0x4b7da9
test esi, esi
je 0x4b7c02
sub esi, ecx
sar esi, 1
jmp 0x4b7c05
test ecx, ecx
je 0x4b7c94
sub ecx, edx
sar ecx, 1
jmp 0x4b7c97
lea eax, [ebp - 0x9c]
push eax
push edi
lea ecx, [ebp - 0x20]
call fcn.00401a00
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x88]
mov ecx, dword [ebp - 0x54]
inc eax
mov dword [ebp - 0x7c], eax
mov byte [ebp - 4], 7
cmp ecx, 8
jb 0x4b7df1
mov edx, dword [ebp - 0x68]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b7de7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b8517
push ecx
push edx
call fcn.004d36cd
add esp, 8
mov ecx, dword [ebp - 0x24]
xor eax, eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 7
mov word [ebp - 0x68], ax
mov byte [ebp - 4], 6
cmp ecx, 8
jb 0x4b7e43
mov edx, dword [ebp - 0x38]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b7e39
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b8517
push ecx
push edx
call fcn.004d36cd
add esp, 8
mov ecx, dword [ebp - 0x3c]
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
mov byte [ebp - 4], 5
cmp ecx, 8
jb 0x4b7e95
mov edx, dword [ebp - 0x50]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b7e8b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b8517
push ecx
push edx
call fcn.004d36cd
add esp, 8
mov edx, dword [ebp + 0x38]
cmp esi, edx
jae 0x4b7ea4
mov esi, dword [ebp - 0x7c]
jmp 0x4b7bc0
mov eax, dword [ebp - 0x80]
mov edx, edi
mov esi, dword [ebp - 0x20]
sub edx, esi
push esi
sar edx, 3
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x10]
test eax, eax
jns 0x4b7ef9
push str.IFileDialog_SetFileTypes
push eax
push 4
sub esp, 0xc
mov dword [ebp - 0xa0], str.S:KBT_third_partykbtkbt_platform_win32.cpp
mov eax, esp
mov dword [ebp - 0x9c], str.ShowFileDialog
movq xmm0, qword [ebp - 0xa0]
movq qword [eax], xmm0
mov dword [eax + 8], 0x61e
call fcn.004a4b70
add esp, 0x18
mov ecx, dword [ebp - 0x20]
mov esi, ecx
cmp esi, edi
je 0x4b7f1e
push dword [esi]
call fcn.004e0078
push dword [esi + 4]
call fcn.004e0078
add esi, 8
add esp, 8
cmp esi, edi
jne 0x4b7f02
mov ecx, dword [ebp - 0x20]
mov byte [ebp - 4], 4
test ecx, ecx
je 0x4b7f60
mov eax, dword [ebp - 0x84]
sub eax, ecx
sar eax, 3
lea edx, [eax*8]
mov eax, ecx
cmp edx, 0x1000
jb 0x4b7f56
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b8517
push edx
push ecx
call fcn.004d36cd
add esp, 8
cmp dword [ebp + 0x24], 8
lea eax, [ebp + 0x10]
cmovae eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x4b7fcc
sub esp, 0x18
lea eax, [ebp + 0x10]
mov ecx, esp
push eax
call fcn.00424e80
lea eax, [ebp - 0x38]
push eax
call fcn.00491f60
mov esi, eax
add esp, 0x1c
lea eax, [ebp + 0x10]
cmp eax, esi
je 0x4b7fc4
mov ecx, eax
call fcn.00421b80
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp + 0x10], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp + 0x20], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x38]
call fcn.00421b80
cmp dword [ebp + 0x24], 8
lea ecx, [ebp - 0x84]
push ecx
push 0x5b6498
lea eax, [ebp + 0x10]
mov dword [ebp - 0x84], 0
cmovae eax, dword [ebp + 0x10]
push 0
push eax
call dword [sym.imp.SHELL32.dll_SHCreateItemFromParsingName]
test eax, eax
js 0x4b804c
mov eax, dword [ebp - 0x80]
push dword [ebp - 0x84]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
test eax, eax
jns 0x4b8040
push str.IFileDialog_SetFolder
push eax
push 4
sub esp, 0xc
mov dword [ebp - 0x20], str.S:KBT_third_partykbtkbt_platform_win32.cpp
mov eax, esp
mov dword [ebp - 0x1c], str.ShowFileDialog
movq xmm0, qword [ebp - 0x20]
movq qword [eax], xmm0
mov dword [eax + 8], 0x632
call fcn.004a4b70
add esp, 0x18
mov eax, dword [ebp - 0x84]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x80]
lea edx, [ebp - 0x7c]
mov dword [ebp - 0x7c], 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x28]
test eax, eax
jns 0x4b8097
push str.IFileDialog_GetOptions
push eax
push 4
sub esp, 0xc
mov dword [ebp - 0x20], str.S:KBT_third_partykbtkbt_platform_win32.cpp
mov eax, esp
mov dword [ebp - 0x1c], str.ShowFileDialog
movq xmm0, qword [ebp - 0x20]
movq qword [eax], xmm0
mov dword [eax + 8], 0x63d
call fcn.004a4b70
add esp, 0x18
mov edx, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x94]
or edx, 0x10001840
mov esi, ecx
mov dword [ebp - 0x7c], edx
mov eax, edx
and esi, 8
je 0x4b80bd
or edx, 0x200
mov dword [ebp - 0x7c], edx
mov eax, edx
test cl, 4
je 0x4b80ca
mov edx, eax
or edx, 0x20
mov dword [ebp - 0x7c], edx
mov eax, dword [ebp - 0x80]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
test eax, eax
jns 0x4b810b
push str.IFileDialog_SetOptions
push eax
push 4
sub esp, 0xc
mov dword [ebp - 0x20], str.S:KBT_third_partykbtkbt_platform_win32.cpp
mov eax, esp
mov dword [ebp - 0x1c], str.ShowFileDialog
movq xmm0, qword [ebp - 0x20]
movq qword [eax], xmm0
mov dword [eax + 8], 0x64b
call fcn.004a4b70
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0x9c]
push eax
push 0x47c6c0
mov dword [ebp - 0x98], 0
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [ebp - 0x80]
push dword [ebp - 0x98]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
test eax, eax
js 0x4b83c9
mov eax, dword [ebp - 0x80]
test esi, esi
je 0x4b832d
lea edx, [ebp - 0x94]
mov dword [ebp - 0x94], 0
mov ecx, dword [eax]
push edx
push 0x5b6aa4
push eax
call dword [ecx]
test eax, eax
js 0x4b8409
mov eax, dword [ebp - 0x94]
lea edx, [ebp - 0x7c]
mov dword [ebp - 0x7c], 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x6c]
test eax, eax
js 0x4b8409
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x7c]
lea edx, [ebp - 0x88]
xor edi, edi
mov byte [ebp - 4], 9
mov dword [ebp - 0x88], edi
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
xor esi, esi
cmp dword [ebp - 0x88], esi
jbe 0x4b8321
nop word [eax + eax]
mov eax, dword [ebp - 0x7c]
lea edx, [ebp - 0x8c]
push edx
mov dword [ebp - 0x8c], 0
push esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
test eax, eax
js 0x4b82f5
mov eax, dword [ebp - 0x8c]
lea edx, [ebp - 0x84]
push edx
mov dword [ebp - 0x84], 0
push 0x80058000
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
js 0x4b82f5
mov edx, dword [ebp - 0x84]
test edx, edx
je 0x4b82f5
mov ecx, edx
mov dword [ebp - 0x38], 0
inc edi
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
lea eax, [ecx + 2]
mov dword [ebp - 0xac], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b8250
sub ecx, dword [ebp - 0xac]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x38]
call fcn.00422d80
mov ecx, dword [ebp - 0x90]
mov byte [ebp - 4], 0xa
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 8]
je 0x4b82a1
movups xmm0, xmmword [ebp - 0x38]
xor edx, edx
mov word [ebp - 0x38], dx
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x28]
movq qword [eax + 0x10], xmm0
mov eax, 7
add dword [ecx + 4], 0x18
jmp 0x4b82ae
lea edx, [ebp - 0x38]
push edx
push eax
call fcn.00423440
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 9
cmp eax, 8
jb 0x4b82e9
mov edx, dword [ebp - 0x38]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b82df
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b8517
push ecx
push edx
call fcn.004d36cd
add esp, 8
push dword [ebp - 0x84]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0x88]
inc esi
cmp esi, eax
jb 0x4b81d0
test eax, eax
je 0x4b8321
mov ecx, dword [ebp - 0xa8]
cmp edi, eax
movzx ecx, cl
mov edx, 1
cmove ecx, edx
mov dword [ebp - 0xa8], ecx
mov eax, dword [ebp - 0x7c]
mov byte [ebp - 4], 0xb
jmp 0x4b83b8
mov dword [ebp - 0x88], 0
lea edx, [ebp - 0x88]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x50]
test eax, eax
js 0x4b8409
mov eax, dword [ebp - 0x88]
lea edx, [ebp - 0x7c]
push edx
mov dword [ebp - 0x7c], 0
push 0x80058000
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
js 0x4b83b2
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x4b83b2
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 0xa8], 1
call fcn.0047cf40
mov ecx, dword [ebp - 0x90]
lea eax, [ebp - 0x38]
push eax
mov byte [ebp - 4], 0xc
call fcn.004c74f0
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
call fcn.00421b80
push dword [ebp - 0x7c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [ebp - 0x7c], 0
mov eax, dword [ebp - 0x88]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp byte [ebp - 0xa8], 0
jne 0x4b8428
jmp 0x4b8409
cmp eax, 0x800704c7
jne 0x4b83d6
mov byte [ebp - 0x11], 1
jmp 0x4b8409
push str.IFileDialog_Show
push eax
push 4
sub esp, 0xc
mov dword [ebp - 0x20], str.S:KBT_third_partykbtkbt_platform_win32.cpp
mov eax, esp
mov dword [ebp - 0x1c], str.ShowFileDialog
movq xmm0, qword [ebp - 0x20]
movq qword [eax], xmm0
mov dword [eax + 8], 0x68e
call fcn.004a4b70
add esp, 0x18
mov esi, dword [ebp - 0x90]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x4b8428
push esi
push ecx
push eax
call fcn.00422f10
mov eax, dword [esi]
add esp, 0xc
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x80]
push eax
mov byte [ebp - 4], 0xd
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [ebp - 0x80], 0
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x90]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x4b8469
cmp byte [ebp - 0x11], al
jne 0x4b8469
mov al, 1
jmp 0x4b846b
xor al, al
or byte [0x607531], al
mov ecx, dword [ebp + 0x24]
cmp ecx, 8
jb 0x4b84a7
mov edx, dword [ebp + 0x10]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b849d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b8517
push ecx
push edx
call fcn.004d36cd
add esp, 8
mov ecx, dword [ebp + 0x3c]
xor eax, eax
mov dword [ebp + 0x20], 0
mov dword [ebp + 0x24], 7
mov word [ebp + 0x10], ax
cmp ecx, 8
jb 0x4b84f1
mov edx, dword [ebp + 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b84e7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b8517
push ecx
push edx
call fcn.004d36cd
add esp, 8
mov al, byte [ebp - 0xa8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d3b35
mov esp, ebp
pop ebp
ret
call fcn.00421c00
call fcn.004d826f
int3