Function at 0x408792
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9ac
push ebx
push esi
push edi
push 0x415598
push dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
mov esi, ecx
push eax
call fcn.00404b36
add esp, 0xc
lea ecx, [esi + 0x18]
push eax
call fcn.00401ba8
lea ecx, [ebp - 0x1c]
call fcn.00401b16
mov al, byte [ebp + 8]
mov edi, 0x41230c
push 0
lea ecx, [ebp - 0x44]
mov byte [esi + 0x80], al
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x30], 0x412314
call fcn.00401a43
mov eax, dword [esi + 4]
mov ebx, 0x412308
mov dword [ebp - 0x44], ebx
cmp byte [eax + 0x1f0], 0
jne 0x408848
cmp byte [eax + 0x1f2], 0
jne 0x408848
mov ecx, esi
call fcn.00408e59
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 0x40607b
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.004053b6
cmp byte [ebp + 8], 0
je 0x408a47
push 0
push str.setup.ibt
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], 0x412314
call fcn.0040399e
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.0040cc01
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.00401b16
lea ecx, [ebp - 0x60]
call fcn.0040c4a2
test al, al
jne 0x4088cc
lea ecx, [ebp - 0x60]
call fcn.00401ffc
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4088cc
lea eax, [ebp - 0x28]
push str.setup.boot
push eax
lea ecx, [ebp - 0x60]
call fcn.0040c3d0
mov ecx, eax
call fcn.0040ca5e
lea ecx, [ebp - 0x28]
call fcn.00401b16
lea ecx, [ebp - 0xa8]
call fcn.00402e6f
push 0
lea eax, [ebp - 0x60]
sub esp, 0x1c
mov ecx, esp
push 1
push eax
call fcn.00403e2a
lea ecx, [ebp - 0xa8]
call fcn.00402ea6
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.00408129
mov edi, 0x104
lea eax, [ebp - 0x1ac]
push edi
push eax
lea ecx, [ebp - 0xa8]
call fcn.0040357a
cmp byte [ebp - 0x1ac], 0x20
jne 0x40894b
cmp byte [ebp - 0x1ab], 0x20
jne 0x40894b
mov ecx, esi
call fcn.0040aea0
push 0
push 0
lea ecx, [ebp - 0xa8]
call fcn.00408129
lea eax, [ebp - 0x1ac]
push edi
push eax
lea ecx, [ebp - 0xa8]
call fcn.0040357a
lea eax, [ebp - 0x1ac]
push 0
push eax
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x74], 0x41230c
mov dword [ebp - 0x6c], 0x412314
call fcn.0040399e
mov eax, dword [0x4123c8]
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.0040b62e
dec eax
lea ecx, [ebp - 0x80]
push eax
lea eax, [ebp - 0x1c]
push 0
push eax
call fcn.004046a3
push eax
lea ecx, [ebp - 0x44]
call fcn.00401ba8
lea ecx, [ebp - 0x1c]
call fcn.00401b16
lea ecx, [ebp - 0x80]
call fcn.00401b16
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0xa8], 0x41234c
call fcn.0040339f
lea ecx, [ebp - 0xa0]
call fcn.00401b16
lea ecx, [ebp - 0x60]
call fcn.00401b16
lea ecx, [ebp - 0x44]
call fcn.00401ffc
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
mov eax, dword [esi + 0x84]
cmp eax, edi
je 0x408a30
test eax, eax
je 0x408a2a
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 0x408acf
mov esi, 0xffffe88d
jmp 0x408baa
mov dword [ebp - 0x10], edi
mov edi, str.setup.ibt
push 0
push edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 8], 0x412314
call fcn.0040399e
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.0040cc01
mov ebx, eax
add esp, 0xc
mov ecx, ebx
call fcn.00401ffc
mov ebx, dword [ebx + 4]
push edi
push ebx
lea ecx, [ebp + 8]
call fcn.00408bbb
lea ecx, [ebp - 0x60]
mov bl, al
call fcn.00401b16
lea ecx, [ebp - 0x1c]
call fcn.00401b16
test bl, bl
je 0x408aab
mov ecx, esi
call fcn.0040aea0
lea eax, [ebp - 0x44]
mov ecx, esi
push eax
call fcn.00409090
mov edi, eax
test edi, edi
je 0x4089fb
lea ecx, [ebp - 0x44]
call fcn.00401b16
mov eax, edi
jmp 0x408bb4
mov ecx, esi
call fcn.00408e00
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.00401ffc
push dword [edi + 4]
lea eax, [ebp - 0x9ac]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esi + 4]
cmp dword [eax + 0x1f4], 0x90001
mov eax, dword [esi + 0x84]
jb 0x408b71
push str.Start2
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [ebp + 8], eax
jne 0x408b38
mov esi, 0xffffe88f
jmp 0x408baa
lea edi, [esi + 0x88]
mov ecx, edi
call fcn.00401ffc
mov ebx, dword [edi + 4]
lea edi, [esi + 0x18]
mov ecx, edi
call fcn.00401ffc
push ebx
push 0x408df4
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]
jmp 0x408ba8
push str.Start
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x408b31
lea edi, [esi + 0x18]
mov ecx, edi
call fcn.00401ffc
push 0x408df4
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.00401b16
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8