Function at 0x408f7c
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 0x40903b
cmp byte [eax + 0x1f3], 0
jne 0x40903b
cmp byte [eax + 0x1f1], 0
jne 0x40903b
mov ecx, esi
call fcn.0040980c
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 0x40629c
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 0x40923a
push 0
push str.setup.ibt
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], 0x41231c
call fcn.00403a6c
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.0040c78b
test al, al
jne 0x4090bf
lea ecx, [ebp - 0x60]
call fcn.00401f9d
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4090bf
lea eax, [ebp - 0x28]
push str.setup.boot
push eax
lea ecx, [ebp - 0x60]
call fcn.0040c6b9
mov ecx, eax
call fcn.0040cc5f
lea ecx, [ebp - 0x28]
call fcn.00401b39
lea ecx, [ebp - 0xa8]
call fcn.00402dc3
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.00402dfa
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.00407117
mov edi, 0x104
lea eax, [ebp - 0x1ac]
push edi
push eax
lea ecx, [ebp - 0xa8]
call fcn.00403516
cmp byte [ebp - 0x1ac], 0x20
jne 0x40913e
cmp byte [ebp - 0x1ab], 0x20
jne 0x40913e
mov ecx, esi
call fcn.0040b1bf
push 0
push 0
lea ecx, [ebp - 0xa8]
call fcn.00407117
lea eax, [ebp - 0x1ac]
push edi
push eax
lea ecx, [ebp - 0xa8]
call fcn.00403516
lea eax, [ebp - 0x1ac]
push 0
push eax
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x74], 0x412314
mov dword [ebp - 0x6c], 0x41231c
call fcn.00403a6c
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.0040b93b
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.004032f3
lea ecx, [ebp - 0xa0]
call fcn.00401b39
lea ecx, [ebp - 0x60]
call fcn.00401b39
lea ecx, [ebp - 0x44]
call fcn.00401f9d
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
mov eax, dword [esi + 0x84]
cmp eax, edi
je 0x409223
test eax, eax
je 0x40921d
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 0x4092c6
mov esi, 0xffffe88d
jmp 0x409359
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.00403a6c
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.00401f9d
mov ebx, dword [ebx + 4]
push edi
push ebx
lea ecx, [ebp + 8]
call fcn.0040936a
lea ecx, [ebp - 0x60]
mov bl, al
call fcn.00401b39
lea ecx, [ebp - 0x1c]
call fcn.00401b39
test bl, bl
je 0x4092a2
mov ecx, esi
call fcn.0040b1bf
lea eax, [ebp - 0x44]
mov ecx, esi
push eax
call fcn.00409a43
mov edi, eax
test edi, edi
je 0x4091ee
lea ecx, [ebp - 0x44]
call fcn.00401b39
mov eax, edi
jmp 0x409363
mov ecx, esi
call fcn.004097b3
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.00401f9d
push dword [edi + 4]
lea eax, [ebp - 0x9ac]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esi + 0x84]
push str.Start3
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [ebp + 8], eax
jne 0x409320
mov esi, 0xffffe88f
jmp 0x409359
lea edi, [esi + 0x88]
mov ecx, edi
call fcn.00401f9d
mov ebx, dword [edi + 4]
lea edi, [esi + 0x18]
mov ecx, edi
call fcn.00401f9d
push ebx
push 0x4095a3
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