Function at 0x4081f0
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 0x4131ec
push dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
mov esi, ecx
push eax
call fcn.00403813
add esp, 0xc
lea ecx, [esi + 0x18]
push eax
call fcn.0040222b
lea ecx, [ebp - 0x1c]
call fcn.00402199
mov al, byte [ebp + 8]
mov edi, 0x4102f8
push 0
lea ecx, [ebp - 0x44]
mov byte [esi + 0x80], al
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x30], 0x4102f0
call fcn.004020c6
mov eax, dword [esi + 4]
mov ebx, 0x4102ec
mov dword [ebp - 0x44], ebx
cmp byte [eax + 0x1f0], 0
jne 0x4082a6
cmp byte [eax + 0x1f2], 0
jne 0x4082a6
mov ecx, esi
call fcn.00408a36
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 0x405cf2
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.0040501e
cmp byte [ebp + 8], 0
je 0x4084a5
push 0
push str.setup.ibt
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], 0x4102f0
call fcn.00402c2b
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.0040b834
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.00402199
lea ecx, [ebp - 0x60]
call fcn.0040b55a
test al, al
jne 0x40832a
lea ecx, [ebp - 0x60]
call fcn.004027e2
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40832a
lea eax, [ebp - 0x28]
push str.setup.boot
push eax
lea ecx, [ebp - 0x60]
call fcn.0040b488
mov ecx, eax
call fcn.0040b691
lea ecx, [ebp - 0x28]
call fcn.00402199
lea ecx, [ebp - 0xa8]
call fcn.004012b2
push 0
lea eax, [ebp - 0x60]
sub esp, 0x1c
mov ecx, esp
push 1
push eax
call fcn.00402980
lea ecx, [ebp - 0xa8]
call fcn.004012e9
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.00407d47
mov edi, 0x104
lea eax, [ebp - 0x1ac]
push edi
push eax
lea ecx, [ebp - 0xa8]
call fcn.004019bd
cmp byte [ebp - 0x1ac], 0x20
jne 0x4083a9
cmp byte [ebp - 0x1ab], 0x20
jne 0x4083a9
mov ecx, esi
call fcn.0040a790
push 0
push 0
lea ecx, [ebp - 0xa8]
call fcn.00407d47
lea eax, [ebp - 0x1ac]
push edi
push eax
lea ecx, [ebp - 0xa8]
call fcn.004019bd
lea eax, [ebp - 0x1ac]
push 0
push eax
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x74], 0x4102f8
mov dword [ebp - 0x6c], 0x4102f0
call fcn.00402c2b
mov eax, dword [0x4103a4]
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.0040ab18
dec eax
lea ecx, [ebp - 0x80]
push eax
lea eax, [ebp - 0x1c]
push 0
push eax
call fcn.00403364
push eax
lea ecx, [ebp - 0x44]
call fcn.0040222b
lea ecx, [ebp - 0x1c]
call fcn.00402199
lea ecx, [ebp - 0x80]
call fcn.00402199
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0xa8], 0x4102e8
call fcn.004017e2
lea ecx, [ebp - 0xa0]
call fcn.00402199
lea ecx, [ebp - 0x60]
call fcn.00402199
lea ecx, [ebp - 0x44]
call fcn.004027e2
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
mov eax, dword [esi + 0x84]
cmp eax, edi
je 0x40848e
test eax, eax
je 0x408488
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 0x40852d
mov esi, 0xffffe88d
jmp 0x4085ad
mov dword [ebp - 0x10], edi
mov edi, str.setup.ibt
push 0
push edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 8], 0x4102f0
call fcn.00402c2b
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.0040b834
mov ebx, eax
add esp, 0xc
mov ecx, ebx
call fcn.004027e2
mov ebx, dword [ebx + 4]
push edi
push ebx
lea ecx, [ebp + 8]
call fcn.004085be
lea ecx, [ebp - 0x60]
mov bl, al
call fcn.00402199
lea ecx, [ebp - 0x1c]
call fcn.00402199
test bl, bl
je 0x408509
mov ecx, esi
call fcn.0040a790
lea eax, [ebp - 0x44]
mov ecx, esi
push eax
call fcn.00408c6d
mov edi, eax
test edi, edi
je 0x408459
lea ecx, [ebp - 0x44]
call fcn.00402199
mov eax, edi
jmp 0x4085b7
mov ecx, esi
call fcn.004089dd
mov eax, dword [esi + 0x84]
push str.Start
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
jne 0x408553
mov esi, 0xffffe88f
jmp 0x4085ad
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.004027e2
push dword [edi + 4]
lea eax, [ebp - 0x9ac]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edi, [esi + 0x18]
mov ecx, edi
call fcn.004027e2
push 0x408811
mov edi, dword [edi + 4]
push dword [esi + 8]
lea eax, [ebp - 0x9ac]
push dword [esi + 0x54]
push dword [esi + 0x14]
push edi
push eax
call ebx
mov esi, eax
lea ecx, [ebp - 0x44]
call fcn.00402199
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8