Function at 0x412360
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48e571
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x134
mov eax, dword [0x4d1260]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x10c], ecx
push 0x910
push 0
mov eax, dword [ebp - 0x10c]
add eax, 4
push eax
call fcn.00464db0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str.WTPROCIN_d
mov ecx, dword [ebp - 0x10c]
add ecx, 0x10
push ecx
call fcn.00465bad
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [ebp - 0x10c]
mov dword [edx + 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [ebp - 0x10c]
mov dword [ecx + 8], eax
push 0x4a85a4
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x10c]
mov dword [ecx + 0x38], eax
push 0x4a85b0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x10c]
mov dword [ecx + 0x34], eax
push 0x4a85c4
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x10c]
mov dword [ecx + 0x30], eax
push 0x4a85d0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x10c]
mov dword [ecx + 0x3c], eax
push 0x4a85e0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x10c]
mov dword [ecx + 0x48], eax
push 0x4a85f0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x10c]
mov dword [ecx + 0x5c], eax
push 0x4a85fc
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x10c]
mov dword [ecx + 0x4c], eax
push 0x4a860c
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x10c]
mov dword [ecx + 0x50], eax
push 0x4a861c
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x10c]
mov dword [ecx + 0x54], eax
push str.DebugBreak
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x10c]
mov dword [ecx + 0x58], eax
push str.AllowSetForegroundWindow
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x10c]
mov dword [ecx + 0x40], eax
push 0x4a8650
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x10c]
mov dword [ecx + 0x44], eax
mov edx, dword [ebp + 0x10]
and edx, 1
je 0x412626
lea ecx, [ebp - 0x40]
call fcn.004017f0
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x7c]
push ecx
call fcn.00412ed0
add esp, 4
mov dword [ebp - 0x110], eax
mov edx, dword [ebp - 0x110]
mov dword [ebp - 0x114], edx
mov byte [ebp - 4], 1
push 0x4a8664
mov eax, dword [ebp - 0x114]
push eax
lea ecx, [ebp - 0x98]
push ecx
call fcn.00409480
add esp, 0xc
mov dword [ebp - 0x118], eax
mov edx, dword [ebp - 0x118]
mov dword [ebp - 0x11c], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x40]
call fcn.00401880
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x98]
call fcn.00401860
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x7c]
call fcn.00401860
mov ecx, dword [ebp + 0x10]
and ecx, 0xffff
mov edx, dword [ebp - 0x10c]
mov dword [edx + 0x64], ecx
lea ecx, [ebp - 0x40]
call fcn.0040b040
cmp eax, 0x103
jb 0x4125e2
push str.wtap.dll
lea ecx, [ebp - 0x40]
call fcn.00408ee0
lea ecx, [ebp - 0x40]
call fcn.00401950
push eax
mov eax, dword [ebp - 0x10c]
add eax, 0x6c
push eax
call fcn.00465320
add esp, 8
push str._InitAP_0
mov ecx, dword [ebp - 0x10c]
add ecx, 0x170
push ecx
call fcn.00465320
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00401860
mov edx, dword [ebp + 0x10]
and edx, 0x10000
je 0x4128e1
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0xb4]
push eax
call fcn.00412ed0
add esp, 4
mov dword [ebp - 0x120], eax
mov ecx, dword [ebp - 0x120]
mov dword [ebp - 0x124], ecx
mov dword [ebp - 4], 3
push str.hotsauce.dll
mov edx, dword [ebp - 0x124]
push edx
lea eax, [ebp - 0x60]
push eax
call fcn.00409480
add esp, 0xc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xb4]
call fcn.00401860
mov ecx, dword [ebp + 0x10]
and ecx, 0xff0000
mov edx, dword [ebp - 0x10c]
mov dword [edx + 0x290], ecx
lea ecx, [ebp - 0x60]
call fcn.00401950
push eax
push 0x104
mov eax, dword [ebp - 0x10c]
add eax, 0x185
push eax
call fcn.00412b50
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 6
mov ecx, 0x4d2af0
call fcn.00408a80
mov dword [ebp - 0x128], eax
mov ecx, dword [ebp - 0x128]
call fcn.00412cf0
mov byte [ebp - 0x129], al
movzx ecx, byte [ebp - 0x129]
test ecx, ecx
je 0x41270f
mov edx, dword [ebp - 0x10c]
mov eax, dword [edx + 0x290]
or eax, 0x40000
mov ecx, dword [ebp - 0x10c]
mov dword [ecx + 0x290], eax
jmp 0x412734
mov dword [ebp - 4], 5
lea edx, [ebp - 0xd0]
push edx
mov ecx, 0x4d2af0
call fcn.00408a80
mov ecx, eax
call fcn.00408770
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0x134], eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x134]
call fcn.00401950
push eax
push 0x20
mov ecx, dword [ebp - 0x10c]
add ecx, 0x294
push ecx
call fcn.00412b50
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xd0]
call fcn.00401860
lea edx, [ebp - 0xec]
push edx
mov ecx, 0x4d2af0
call fcn.00408a80
mov ecx, eax
call fcn.004086f0
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x138]
mov dword [ebp - 0x13c], eax
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x13c]
call fcn.00401950
push eax
push 0x20
mov ecx, dword [ebp - 0x10c]
add ecx, 0x2b4
push ecx
call fcn.00412b50
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xec]
call fcn.00401860
lea edx, [ebp - 0x108]
push edx
mov ecx, 0x4d2af0
call fcn.00412d60
mov dword [ebp - 0x140], eax
mov eax, dword [ebp - 0x140]
mov dword [ebp - 0x144], eax
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x144]
call fcn.00408f40
push eax
push 0x4a8698
push 0x26
mov ecx, dword [ebp - 0x10c]
add ecx, 0x2d4
push ecx
call fcn.00412b90
add esp, 0x10
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x108]
call fcn.0040c590
mov ecx, 0x4d2af0
call fcn.0041a5d0
mov ecx, eax
call fcn.0040a480
mov ecx, eax
call fcn.00408f40
push eax
push 0x4a869c
push 0x10
mov edx, dword [ebp - 0x10c]
add edx, 0x2fa
push edx
call fcn.00412b90
add esp, 0x10
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x10c]
add eax, 0x30a
push eax
push 1
call fcn.00412040
add esp, 8
mov ecx, dword [ebp - 0x10c]
add ecx, 0x40e
push ecx
push 0
call fcn.00412040
add esp, 8
mov ecx, dword [ebp - 0x10c]
add ecx, 0x184
call fcn.00412210
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.00401860
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046521c
mov esp, ebp
pop ebp
ret 0xc