Function at 0x100bb380
Capabilities:
Check if file exists
Get file attributes
Get graphical window text

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ffda2
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x12b0
call fcn.100d5ce0
mov eax, dword [0x1013c014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x12bc], edi
mov eax, dword [edi + 0x5c]
cmp eax, 3
jne 0x100bb5ae
mov byte [edi + 0x69], 1
mov dword [ebp - 4], 0
call fcn.100215d0
mov ecx, eax
test ecx, ecx
je 0x100bbdde
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x12b4], eax
lea ecx, [ebp - 0x12b4]
mov dword [ebp - 4], 1
push ecx
lea ecx, [edi + 0x4c]
call fcn.100491a0
lea ecx, [ebp - 0x12b4]
call fcn.1009a940
lea ecx, [ebp - 0x12b4]
call fcn.1009a9f0
mov esi, dword [ebp - 0x12b4]
mov edi, esi
lea ecx, [edi + 2]
nop word [eax + eax]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x100bb440
sub edi, ecx
sar edi, 1
cmp edi, 0x207
jle 0x100bb45e
mov edi, 0x207
jmp 0x100bb462
test edi, edi
jle 0x100bb47b
movzx eax, word [esi + edi*2]
mov ecx, 0xdc00
cmp ax, cx
jb 0x100bb47b
mov ecx, 0xdfff
cmp ax, cx
ja 0x100bb47b
dec edi
add edi, edi
lea eax, [ebp - 0x660]
push edi
push esi
push eax
call fcn.100d7080
xor eax, eax
add esp, 0xc
mov word [ebp + edi - 0x660], ax
mov dword [ebp - 0x12b8], eax
cmp word [ebp - 0x660], ax
je 0x100bb4d5
lea eax, [ebp - 0x660]
push 0x2c
push eax
call fcn.100d6530
add esp, 8
test eax, eax
je 0x100bb504
xor ecx, ecx
mov word [eax], cx
add eax, 2
push eax
call fcn.100ddeea
add esp, 4
mov dword [ebp - 0x12b8], eax
jmp 0x100bb504
mov eax, dword [0x1010f6fc]
movups xmm0, xmmword [str.shell32.dll]
mov dword [ebp - 0x650], eax
mov ax, word [0x1010f700]
mov word [ebp - 0x64c], ax
xor eax, eax
movups xmmword [ebp - 0x660], xmm0
mov word [ebp - 0x64a], ax
mov edi, dword [ebp - 0x12bc]
lea eax, [ebp - 0x12b8]
push eax
lea edx, [ebp - 0x660]
mov ecx, dword [edi + 4]
call fcn.100b9ed0
add esp, 4
test al, al
je 0x100bb58b
mov eax, dword [ebp - 0x12b8]
test eax, eax
jle 0x100bb57b
push eax
push str.___d
lea eax, [ebp - 0x3c]
push 0x14
push eax
call fcn.100a4830
lea ecx, [ebp - 0x660]
add esp, 0x10
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100bb550
sub ecx, edx
lea eax, [ebp - 0x3c]
sar ecx, 1
mov edx, 0x208
push eax
lea eax, [ebp - 0x660]
sub edx, ecx
lea ecx, [eax + ecx*2]
call fcn.100a4780
add esp, 4
lea eax, [ebp - 0x660]
push eax
push dword [edi + 0x4c]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 1
push dword [edi + 0x4c]
push 0x28
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov byte [edi + 0x69], 0
add esi, 0xfffffff0
mov dword [ebp - 4], 2
jmp 0x100bbda7
cmp eax, 4
je 0x100bbc1b
cmp eax, 5
je 0x100bbc1b
cmp eax, 6
jne 0x100bb6a2
lea ecx, [ebp - 0x12b4]
mov byte [edi + 0x69], 1
call fcn.1001fb10
lea ecx, [ebp - 0x12b4]
mov dword [ebp - 4], 6
push ecx
lea ecx, [edi + 0x4c]
call fcn.100491a0
lea ecx, [ebp - 0x12b4]
call fcn.1009a940
lea ecx, [ebp - 0x12b4]
call fcn.1009a9f0
mov esi, dword [ebp - 0x12b4]
push str..wav
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
call fcn.100dc721
add esp, 8
test eax, eax
jne 0x100bb64b
push esi
mov edx, 0x400
lea ecx, [ebp - 0xa50]
call fcn.100a4780
add esp, 4
lea eax, [ebp - 0xa50]
push 0x400
push eax
call dword [sym.imp.SHELL32.dll_DoEnvironmentSubstW]
jmp 0x100bb654
xor eax, eax
mov word [ebp - 0xa50], ax
mov ecx, dword [edi + 4]
lea edx, [ebp - 0xa50]
call fcn.100ba370
test al, al
je 0x100bb676
lea eax, [ebp - 0xa50]
push eax
push dword [edi + 0x4c]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 1
push dword [edi + 0x4c]
push 0x28
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [edi + 0x4c]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [edi + 0x69], 0
add esi, 0xfffffff0
mov dword [ebp - 4], 7
jmp 0x100bbda7
cmp eax, 9
jne 0x100bb7ce
lea ecx, [ebp - 0x12b4]
mov byte [edi + 0x69], 1
call fcn.1001fb10
lea ecx, [ebp - 0x12b4]
mov dword [ebp - 4], 8
push ecx
lea ecx, [edi + 0x4c]
call fcn.100491a0
lea ecx, [ebp - 0x12b4]
call fcn.1009a940
lea ecx, [ebp - 0x12b4]
call fcn.1009a9f0
mov esi, dword [ebp - 0x12b4]
mov ecx, esi
call fcn.100be330
mov ecx, eax
mov dword [ebp - 0x38], 0x24
shr ecx, 0x10
xorps xmm0, xmm0
movzx edx, cl
movzx ecx, al
and eax, 0xff00
shl ecx, 0x10
or edx, ecx
mov dword [ebp - 0x30], 0
or edx, eax
mov dword [ebp - 0x28], 0x10159470
mov eax, dword [edi + 4]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x38]
movups xmmword [ebp - 0x24], xmm0
push eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x24], 0x103
call dword [sym.imp.COMDLG32.dll_ChooseColorW]
test eax, eax
je 0x100bb7a2
mov edx, dword [ebp - 0x2c]
mov eax, edx
shr eax, 0x10
movzx ecx, al
movzx eax, dl
and edx, 0xff00
shl eax, 0x10
or ecx, eax
lea eax, [ebp - 0x118]
or ecx, edx
push ecx
push 0x101150e4
push 0x64
push eax
call fcn.100a4830
add esp, 0x10
lea eax, [ebp - 0x118]
push eax
push dword [edi + 0x4c]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, edi
call fcn.100bc6a0
push ecx
mov ecx, edi
call fcn.100bd7d0
push 1
push 0
push dword [edi + 0x44]
call dword [sym.imp.USER32.dll_InvalidateRect]
push 1
push dword [edi + 0x4c]
push 0x28
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [edi + 0x4c]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [edi + 0x69], 0
add esi, 0xfffffff0
mov dword [ebp - 4], 9
jmp 0x100bbda7
cmp eax, 0xa
jne 0x100bbb17
lea ecx, [ebp - 0x12b4]
mov byte [edi + 0x69], 1
call fcn.1001fb10
lea ecx, [ebp - 0x12b4]
mov dword [ebp - 4], 0xa
push ecx
lea ecx, [edi + 0x4c]
call fcn.100491a0
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push 0x5a
push esi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push esi
push 0
mov dword [ebp - 0x12b8], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push 0x5c
lea eax, [ebp - 0x12b0]
push 0
push eax
call fcn.100d6eb0
mov esi, dword [ebp - 0x12b4]
add esp, 0xc
mov ecx, esi
cmp word [esi], 0x20
jne 0x100bb849
nop
add ecx, 2
cmp word [ecx], 0x20
je 0x100bb840
push 0x10122150
push 0x20
lea edx, [ebp - 0x1294]
call fcn.100a49c0
lea ecx, [ebp - 0x1294]
mov dword [ebp - 0x12b4], eax
mov edx, eax
add esp, 8
lea eax, [ecx + 2]
mov dword [ebp - 0x12c0], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100bb875
sub ecx, dword [ebp - 0x12c0]
sar ecx, 1
test ecx, ecx
jle 0x100bb8b3
lea eax, [ecx + ecx]
nop
cmp word [ebp + eax - 0x1296], 0x20
jne 0x100bb8ad
dec ecx
xor edi, edi
lea eax, [ecx + ecx]
mov word [ebp + eax - 0x1294], di
test ecx, ecx
jg 0x100bb890
mov edi, dword [ebp - 0x12bc]
cmp word [edx], 0x20
jne 0x100bb8cf
nop dword [eax]
add edx, 2
cmp word [edx], 0x20
je 0x100bb8c0
mov dword [ebp - 0x12b4], edx
mov ecx, dword [ebp - 0x12b4]
lea edx, [ebp - 0x250]
push 0x10122150
push 0x100
call fcn.100a49c0
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x12c0], eax
add esp, 8
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100bb900
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x100bb948
lea eax, [ecx + ecx]
nop word [eax + eax]
cmp word [ebp + eax - 0x252], 0x20
jne 0x100bb948
dec ecx
lea eax, [ecx + ecx]
cmp eax, 0x200
jae 0x100bbde8
xor edx, edx
mov word [ebp + eax - 0x250], dx
test ecx, ecx
jg 0x100bb920
lea eax, [ebp - 0x250]
mov dword [ebp - 0x12a0], 0x190
push str.bold
push eax
call fcn.100dc721
add esp, 8
test eax, eax
je 0x100bb9aa
lea eax, [ebp - 0x250]
push str.italic
push eax
call fcn.100dc721
add esp, 8
test eax, eax
jne 0x100bb98b
mov byte [ebp - 0x129c], 1
jmp 0x100bb9b4
lea eax, [ebp - 0x250]
push str.bold_italic
push eax
call fcn.100dc721
add esp, 8
test eax, eax
jne 0x100bb9b4
mov byte [ebp - 0x129c], 1
mov dword [ebp - 0x12a0], 0x2bc
mov ecx, dword [ebp - 0x12c0]
lea edx, [ebp - 0x250]
push 0x1010b740
push 0x100
call fcn.100a49c0
lea eax, [ebp - 0x250]
push eax
call fcn.100ddeea
mov ecx, eax
mov dword [ebp - 0x50], 0x3c
imul ecx, dword [ebp - 0x12b8]
mov eax, 0xc71c71c7
add esp, 0xc
mov dword [ebp - 0x48], 0
add ecx, 0x24
imul ecx
push 0x2c
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x12b0], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x12b0]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.100d6eb0
add esp, 0xc
mov ecx, 0x800040
cmp word [ebp - 0x1294], 0
mov eax, 0x800000
cmovne eax, ecx
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.COMDLG32.dll_ChooseFontW]
test eax, eax
je 0x100bbaeb
mov cl, byte [ebp - 0x129c]
mov eax, str.italic
test cl, cl
mov edx, 0x101224b8
cmove eax, edx
cmp dword [ebp - 0x12a0], 0x2bc
mov dword [ebp - 0x12bc], eax
jl 0x100bba94
test cl, cl
mov eax, str.bold_italic
mov edx, str.bold
cmove eax, edx
mov dword [ebp - 0x12bc], eax
mov eax, dword [ebp - 0x12b0]
lea ecx, [eax + eax*8]
mov eax, dword [ebp - 0x12b8]
cdq
sub eax, edx
shl ecx, 3
sar eax, 1
sub eax, ecx
cdq
idiv dword [ebp - 0x12b8]
push eax
push dword [ebp - 0x12bc]
lea eax, [ebp - 0x1294]
push eax
push str._s___s___d
lea eax, [ebp - 0x450]
push 0x100
push eax
call fcn.100a4830
add esp, 0x18
lea eax, [ebp - 0x450]
push eax
push dword [edi + 0x4c]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 1
push dword [edi + 0x4c]
push 0x28
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [edi + 0x4c]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [edi + 0x69], 0
add esi, 0xfffffff0
mov dword [ebp - 4], 0xb
jmp 0x100bbda7
cmp eax, 0xb
jne 0x100bbdbc
lea ecx, [ebp - 0x12b4]
mov byte [edi + 0x69], 1
call fcn.1001fb10
lea ecx, [ebp - 0x12b4]
mov dword [ebp - 4], 0xc
push ecx
lea ecx, [edi + 0x4c]
call fcn.100491a0
lea ecx, [ebp - 0x12b4]
call fcn.1009a940
lea ecx, [ebp - 0x12b4]
call fcn.1009a9f0
mov esi, dword [ebp - 0x12b4]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100bbb99
test al, 0x10
je 0x100bbb99
push esi
mov edx, 0x400
lea ecx, [ebp - 0x1250]
call fcn.100a4780
add esp, 4
lea eax, [ebp - 0x1250]
push 0x400
push eax
call dword [sym.imp.SHELL32.dll_DoEnvironmentSubstW]
jmp 0x100bbba2
xor eax, eax
mov word [ebp - 0x1250], ax
push esi
mov edx, 0x400
lea ecx, [ebp - 0x1250]
call fcn.100a4780
add esp, 4
lea eax, [ebp - 0x1250]
push 0x400
push eax
call dword [sym.imp.SHELL32.dll_DoEnvironmentSubstW]
mov ecx, dword [edi + 4]
lea edx, [ebp - 0x1250]
push 1
call fcn.100b6d30
add esp, 4
test al, al
je 0x100bbbef
lea eax, [ebp - 0x1250]
push eax
push dword [edi + 0x4c]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 1
push dword [edi + 0x4c]
push 0x28
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [edi + 0x4c]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [edi + 0x69], 0
add esi, 0xfffffff0
mov dword [ebp - 4], 0xd
jmp 0x100bbda7
mov byte [edi + 0x69], 1
mov dword [ebp - 4], 3
call fcn.100215d0
mov ecx, eax
test ecx, ecx
je 0x100bbded
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x12b4], eax
lea ecx, [ebp - 0x12b4]
mov dword [ebp - 4], 4
push ecx
lea ecx, [edi + 0x4c]
call fcn.100491a0
lea ecx, [ebp - 0x12b4]
call fcn.1009a940
lea ecx, [ebp - 0x12b4]
call fcn.1009a9f0
mov esi, dword [ebp - 0x12b4]
push str..bmp
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
call fcn.100dc721
add esp, 8
test eax, eax
je 0x100bbcd3
push str..png
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
call fcn.100dc721
add esp, 8
test eax, eax
je 0x100bbcd3
cmp dword [edi + 0x5c], 5
jne 0x100bbcc8
push str..jpg
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
call fcn.100dc721
add esp, 8
test eax, eax
je 0x100bbcd3
xor eax, eax
mov word [ebp - 0xa50], ax
jmp 0x100bbd50
mov edi, esi
lea ecx, [edi + 2]
nop dword [eax + eax]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x100bbce0
sub edi, ecx
sar edi, 1
cmp edi, 0x3ff
jle 0x100bbcfe
mov edi, 0x3ff
jmp 0x100bbd02
test edi, edi
jle 0x100bbd1b
movzx eax, word [esi + edi*2]
mov ecx, 0xdc00
cmp ax, cx
jb 0x100bbd1b
mov ecx, 0xdfff
cmp ax, cx
ja 0x100bbd1b
dec edi
add edi, edi
lea eax, [ebp - 0xa50]
push edi
push esi
push eax
call fcn.100d7080
add esp, 0xc
xor eax, eax
mov word [ebp + edi - 0xa50], ax
lea eax, [ebp - 0xa50]
push 0x400
push eax
call dword [sym.imp.SHELL32.dll_DoEnvironmentSubstW]
mov edi, dword [ebp - 0x12bc]
cmp dword [edi + 0x5c], 5
lea edx, [ebp - 0xa50]
mov ecx, dword [edi + 4]
sete al
movzx eax, al
push eax
call fcn.100ba0b0
add esp, 4
test al, al
je 0x100bbd80
lea eax, [ebp - 0xa50]
push eax
push dword [edi + 0x4c]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 1
push dword [edi + 0x4c]
push 0x28
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [edi + 0x4c]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [edi + 0x69], 0
add esi, 0xfffffff0
mov dword [ebp - 4], 5
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100bbdbc
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100d4906
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
push 0x80004005
call fcn.10013970
call fcn.100d5202
push 0x80004005
call fcn.10013970
int3