Function at 0x4090cc
Capabilities:
Check if file exists
Create thread
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9ac
push ebx
push esi
push edi
push 0x415608
push dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
mov esi, ecx
push eax
call fcn.00404e5d
add esp, 0xc
lea ecx, [esi + 0x18]
push eax
call fcn.00401bcb
lea ecx, [ebp - 0x1c]
call fcn.00401b39
mov al, byte [ebp + 8]
mov edi, 0x412314
push 0
lea ecx, [ebp - 0x44]
mov byte [esi + 0x80], al
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x30], 0x41231c
call fcn.00401a66
mov eax, dword [esi + 4]
mov ebx, 0x412310
mov dword [ebp - 0x44], ebx
cmp byte [eax + 0x1f0], 0
jne 0x40918b
cmp byte [eax + 0x1f3], 0
jne 0x40918b
cmp byte [eax + 0x1f1], 0
jne 0x40918b
mov ecx, esi
call fcn.00409961
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp + 0xc], eax
mov dword [esi + 0x10], eax
lea eax, [ebp - 0x64]
push eax
xor eax, eax
push eax
push esi
push 0x40628d
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x2710
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp + 0xc]
call fcn.00405685
cmp byte [ebp + 8], 0
je 0x40938a
push 0
push str.setup.ibt
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], 0x41231c
call fcn.00403a2f
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
push eax
lea eax, [esi + 0x18]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00404ce8
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.00401b39
lea ecx, [ebp - 0x60]
call fcn.0040c7ab
test al, al
jne 0x40920f
lea ecx, [ebp - 0x60]
call fcn.00402077
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40920f
lea eax, [ebp - 0x28]
push str.setup.boot
push eax
lea ecx, [ebp - 0x60]
call fcn.0040c6d9
mov ecx, eax
call fcn.0040cc7f
lea ecx, [ebp - 0x28]
call fcn.00401b39
lea ecx, [ebp - 0xa8]
call fcn.00402d86
push 0
lea eax, [ebp - 0x60]
sub esp, 0x1c
mov ecx, esp
push 1
push eax
call fcn.00403fc0
lea ecx, [ebp - 0xa8]
call fcn.00402dbd
and byte [ebp - 0x1ac], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x1ab]
push 2
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0xfffffffffffffffe
lea ecx, [ebp - 0xa8]
stosb byte es:[edi], al
call fcn.0040740c
mov edi, 0x104
lea eax, [ebp - 0x1ac]
push edi
push eax
lea ecx, [ebp - 0xa8]
call fcn.004034d9
cmp byte [ebp - 0x1ac], 0x20
jne 0x40928e
cmp byte [ebp - 0x1ab], 0x20
jne 0x40928e
mov ecx, esi
call fcn.0040b1bb
push 0
push 0
lea ecx, [ebp - 0xa8]
call fcn.0040740c
lea eax, [ebp - 0x1ac]
push edi
push eax
lea ecx, [ebp - 0xa8]
call fcn.004034d9
lea eax, [ebp - 0x1ac]
push 0
push eax
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x74], 0x412314
mov dword [ebp - 0x6c], 0x41231c
call fcn.00403a2f
mov eax, dword [0x4123d0]
lea ecx, [ebp - 0x80]
push eax
lea eax, [ebp + 8]
push 1
push eax
mov dword [ebp - 0x80], ebx
mov dword [ebp + 8], 0xa
call fcn.0040b937
dec eax
lea ecx, [ebp - 0x80]
push eax
lea eax, [ebp - 0x1c]
push 0
push eax
call fcn.00404839
push eax
lea ecx, [ebp - 0x44]
call fcn.00401bcb
lea ecx, [ebp - 0x1c]
call fcn.00401b39
lea ecx, [ebp - 0x80]
call fcn.00401b39
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0xa8], 0x412354
call fcn.004032b6
lea ecx, [ebp - 0xa0]
call fcn.00401b39
lea ecx, [ebp - 0x60]
call fcn.00401b39
lea ecx, [ebp - 0x44]
call fcn.00402077
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
mov eax, dword [esi + 0x84]
cmp eax, edi
je 0x409373
test eax, eax
je 0x40936d
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
and dword [esi + 0x84], 0
mov dword [esi + 0x84], edi
cmp dword [esi + 0x84], 0
jne 0x409416
mov esi, 0xffffe88d
jmp 0x4094a9
and byte [ebp + 8], 0
mov dword [ebp - 0x10], edi
mov edi, str.setup.ibt
push 0
push edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 8], 0x41231c
call fcn.00403a2f
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
push eax
lea eax, [esi + 0x18]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00404ce8
mov ebx, eax
add esp, 0xc
mov ecx, ebx
call fcn.00402077
mov ebx, dword [ebx + 4]
push edi
push ebx
lea ecx, [ebp + 8]
call fcn.004094ba
lea ecx, [ebp - 0x60]
mov bl, al
call fcn.00401b39
lea ecx, [ebp - 0x1c]
call fcn.00401b39
test bl, bl
je 0x4093f2
mov ecx, esi
call fcn.0040b1bb
lea eax, [ebp - 0x44]
mov ecx, esi
push eax
call fcn.00409c1b
mov edi, eax
test edi, edi
je 0x40933e
lea ecx, [ebp - 0x44]
call fcn.00401b39
mov eax, edi
jmp 0x4094b3
mov ecx, esi
call fcn.00409908
and byte [ebp - 0x9ac], 0
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x9ab]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esi + 4]
mov ecx, edi
call fcn.00402077
push dword [edi + 4]
lea eax, [ebp - 0x9ac]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esi + 0x84]
push str.Start4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [ebp + 8], eax
jne 0x409470
mov esi, 0xffffe88f
jmp 0x4094a9
lea edi, [esi + 0x88]
mov ecx, edi
call fcn.00402077
mov ebx, dword [edi + 4]
lea edi, [esi + 0x18]
mov ecx, edi
call fcn.00402077
push ebx
push 0x4096f3
push dword [esi + 8]
mov edi, dword [edi + 4]
lea eax, [ebp - 0x9ac]
push dword [esi + 0x54]
push dword [esi + 0x14]
push edi
push eax
call dword [ebp + 8]
mov esi, eax
lea ecx, [ebp - 0x44]
call fcn.00401b39
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8