Function at 0x40108a
Capabilities:
Create directory
Delete directory
Enumerate gui resources
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
push ebx
push esi
push edi
push 0
push 0x4015e8
call dword [sym.imp.USER32.dll_EnumWindows]
mov ebx, dword [ebp + 0x10]
push 0x403074
push ebx
call fcn.00401776
mov esi, eax
push 0x403070
neg esi
sbb esi, esi
push ebx
neg esi
mov dword [ebp - 4], esi
call fcn.00401776
add esp, 0x10
neg eax
sbb eax, eax
neg eax
test esi, esi
mov dword [0x4030dc], eax
jne 0x40122a
push 0x40306c
push ebx
call fcn.00401776
neg eax
sbb eax, eax
pop ecx
inc eax
pop ecx
mov dword [0x4030dc], eax
call section..text
test eax, eax
jne 0x40119a
push 0x403068
push ebx
call fcn.00401776
mov esi, eax
pop ecx
test esi, esi
pop ecx
jne 0x401141
lea eax, [ebp - 0x204]
push 0x63
push eax
push 1
push esi
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
jle 0x40119a
and byte [ebp - 0x1a1], 0
lea eax, [ebp - 0x204]
test eax, eax
lea esi, [ebp - 0x204]
je 0x40119a
movsx eax, byte [esi + 3]
add esi, 3
push eax
xor edi, edi
call fcn.0040179e
test eax, eax
pop ecx
jne 0x401171
cmp byte [edi + esi], 0
je 0x40116c
movsx eax, byte [edi + esi + 1]
inc edi
push eax
call fcn.0040179e
test eax, eax
pop ecx
je 0x401155
cmp edi, 0x64
jae 0x40119a
inc edi
lea eax, [ebp - 0x1a0]
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x1a0]
push eax
push 0x403064
push 0x4020d0
call fcn.004019f9
add esp, 0xc
push 0x403060
push ebx
call fcn.00401776
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x401227
mov al, byte [esi + 3]
add esi, 3
xor edi, edi
cmp al, 0x27
je 0x4011e4
cmp al, 0x22
je 0x4011e4
movsx eax, al
push eax
call fcn.0040179e
test eax, eax
pop ecx
jne 0x4011fe
cmp byte [edi + esi], 0
je 0x4011f9
movsx eax, byte [edi + esi + 1]
inc edi
push eax
call fcn.0040179e
test eax, eax
pop ecx
je 0x4011cb
jmp 0x4011f9
mov cl, byte [esi + 1]
inc esi
cmp al, cl
je 0x4011fe
test cl, cl
je 0x4011f9
mov cl, byte [edi + esi + 1]
inc edi
cmp al, cl
jne 0x4011ec
cmp edi, 0x64
jae 0x401227
inc edi
lea eax, [ebp - 0x1a0]
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x1a0]
push eax
push 0x40305c
push 0x4020d0
call fcn.004019f9
add esp, 0xc
mov esi, dword [ebp - 4]
mov al, byte [0x4030e0]
push 0x4a
mov byte [ebp - 0x13c], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x13b]
rep stosd dword es:[edi], eax
neg esi
stosw word es:[edi], ax
sbb esi, esi
push 0
and esi, 2
stosb byte es:[edi], al
and dword [ebp - 0xc], 0
mov dword [ebp - 0x10], esi
mov esi, str.CurInstall
mov edi, 0x4020d0
push esi
push edi
call fcn.00401874
xor ebx, ebx
add esp, 0xc
cmp dword [ebp - 4], ebx
mov dword [ebp + 0x10], eax
jne 0x401276
inc dword [ebp + 0x10]
lea eax, [ebp - 0x13c]
push 0xfa
push eax
push ebx
push ebx
push 0x4020d4
push edi
call fcn.00401aef
add esp, 0x18
test eax, eax
je 0x4013c9
cmp byte [ebp - 0x13c], 0
je 0x4013c9
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push dword [ebp + 0x10]
lea eax, [ebp + eax - 0x13c]
mov dword [ebp - 8], eax
push str._x.bin_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
cmp dword [ebp - 4], ebx
jne 0x4012e3
lea eax, [ebp - 0x13c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jl 0x4013c9
mov edi, dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
mov dword [ebp - 0xc], ebx
mov ebx, str.PART
lea eax, [ebp - 0x13c]
push eax
push 0x401434
push ebx
push 0
call edi
mov ecx, dword [ebp - 0x10]
xor eax, eax
cmp dword [ebp - 0xc], eax
setne al
lea eax, [eax + ecx*2]
mov eax, dword [eax*4 + 0x402194]
cmp eax, 4
mov dword [ebp - 0x10], eax
jne 0x401300
cmp dword [ebp - 0xc], 0
jne 0x4013bc
cmp dword [ebp - 4], 0
jne 0x401352
push dword [ebp + 0x10]
push esi
push 0x4020d0
call fcn.004018b5
add esp, 0xc
dec dword [ebp + 0x10]
cmp dword [ebp + 0x10], 0
jle 0x4013b8
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [ebp + 0x10]
push str._x.bin_
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x13c]
push eax
call esi
test eax, eax
je 0x4013af
and dword [ebp - 0xc], 0
lea eax, [ebp - 0x13c]
push eax
push 0x401434
push ebx
push 0
mov dword [ebp - 0x10], 3
call edi
push 0x403058
call esi
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
dec dword [ebp + 0x10]
cmp dword [ebp + 0x10], 0
jg 0x40135e
and dword [ebp - 0xc], 0
call dword [sym.imp.ole32.dll_CoUninitialize]
mov edi, 0x4020d0
xor ebx, ebx
cmp dword [0x4030dc], ebx
jne 0x401419
cmp dword [ebp - 4], ebx
mov ecx, 0x40305c
jne 0x4013e0
mov ecx, 0x4030e0
cmp dword [ebp - 0xc], ebx
mov eax, str.The_My_Web_Search_has_been_successfully__sinstalled
je 0x4013ef
mov eax, str.Failed_to__sinstall_the_My_Web_Search
push ecx
push eax
lea eax, [ebp - 0x1a0]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x1a0]
push 0x1000
push str.My_Web_Search_Installer
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp - 0xc]
push 0x40303c
push edi
call fcn.004018b5
mov eax, dword [ebp - 0xc]
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret 0x10