Function at 0x412420
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x4f4164]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
push 0x100
mov dword [ebp - 0x124], eax
lea eax, [ebp - 0x10c]
push ebx
push eax
mov dword [ebp - 0x128], esi
mov dword [ebp - 0x120], 0x11c
mov dword [ebp - 0x114], ebx
mov dword [ebp - 0x110], ebx
call fcn.00495790
add esp, 0xc
xor eax, eax
mov word [ebp - 0xa], ax
mov dword [ebp - 8], eax
push 3
push 0x20
push 3
push 1
push 3
push 2
push eax
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
push 0x23
lea eax, [ebp - 0x120]
mov dword [ebp - 0x11c], 6
xor ecx, ecx
mov dword [ebp - 0x118], 2
push eax
mov word [ebp - 0xc], cx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x412524
push str.GetOverlappedResultEx
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x412502
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00450df0
mov esp, ebp
pop ebp
ret
push dword [ebp + 0x18]
mov ecx, esi
push dword [ebp + 0x14]
push dword [ebp - 0x124]
push edi
push dword [ebp - 0x128]
call dword [0x4c758c]
call esi
jmp 0x412621
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x412610
cmp eax, 0xffffffff
je 0x412610
test edi, edi
je 0x412610
cmp dword [edi + 0x10], ebx
je 0x412610
push 0x18
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x412623
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
push 0
push 0
push 1
push 0
mov dword [esi], edi
mov dword [esi + 4], eax
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0xc], eax
test eax, eax
je 0x4125da
lea eax, [ebp - 0x12c]
push eax
push 0
push esi
push 0x412640
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
test eax, eax
je 0x4125da
push 1
push dword [ebp - 0x124]
push edi
push dword [ebp - 0x128]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov ebx, eax
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4125ca
push eax
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 1
push 0xffffffffffffffff
push dword [esi + 8]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SignalObjectAndWait]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4125e8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 8]
test eax, eax
je 0x4125f6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00450df0
mov esp, ebp
pop ebp
ret
push dword [ebp + 0x18]
push dword [ebp - 0x124]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov ebx, eax
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00450df0
mov esp, ebp
pop ebp
ret