Function at 0x412540
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x479298
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x158
mov eax, dword [0x4b0b90]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x120], ecx
push 0x95c
push 0
mov eax, dword [ebp - 0x120]
add eax, 4
push eax
call fcn.0044fff0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str.WTPROCIN_d
mov ecx, dword [ebp - 0x120]
add ecx, 0x10
push ecx
call fcn.00450ded
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [ebp - 0x120]
mov dword [edx + 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [ebp - 0x120]
mov dword [ecx + 8], eax
push 0x4905fc
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x120]
mov dword [ecx + 0x38], eax
push 0x490608
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x120]
mov dword [ecx + 0x34], eax
push 0x49061c
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x120]
mov dword [ecx + 0x30], eax
push 0x490628
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x120]
mov dword [ecx + 0x3c], eax
push 0x490638
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x120]
mov dword [ecx + 0x48], eax
push 0x490648
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x120]
mov dword [ecx + 0x5c], eax
push 0x490654
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x120]
mov dword [ecx + 0x4c], eax
push 0x490664
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x120]
mov dword [ecx + 0x50], eax
push 0x490674
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x120]
mov dword [ecx + 0x54], eax
push 0x490680
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x120]
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 - 0x120]
mov dword [ecx + 0x40], eax
push 0x4906a8
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x120]
mov dword [ecx + 0x44], eax
mov edx, dword [ebp + 0x10]
and edx, 1
je 0x412806
lea ecx, [ebp - 0x40]
call fcn.00401760
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.004152f0
add esp, 4
mov dword [ebp - 0x124], eax
mov edx, dword [ebp - 0x124]
mov dword [ebp - 0x128], edx
mov byte [ebp - 4], 1
push 0x4906bc
mov eax, dword [ebp - 0x128]
push eax
lea ecx, [ebp - 0x98]
push ecx
call fcn.00409560
add esp, 0xc
mov dword [ebp - 0x12c], eax
mov edx, dword [ebp - 0x12c]
mov dword [ebp - 0x130], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x130]
push eax
lea ecx, [ebp - 0x40]
call fcn.004017f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x98]
call fcn.004017d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x7c]
call fcn.004017d0
mov ecx, dword [ebp + 0x10]
and ecx, 0xffff
mov edx, dword [ebp - 0x120]
mov dword [edx + 0x64], ecx
lea ecx, [ebp - 0x40]
call fcn.004018c0
cmp eax, 0x103
jb 0x4127c2
push str.wtap.dll
lea ecx, [ebp - 0x40]
call fcn.00408ea0
lea ecx, [ebp - 0x40]
call fcn.004018a0
push eax
mov eax, dword [ebp - 0x120]
add eax, 0x6c
push eax
call fcn.00450560
add esp, 8
push str._InitAP_0
mov ecx, dword [ebp - 0x120]
add ecx, 0x170
push ecx
call fcn.00450560
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004017d0
mov edx, dword [ebp + 0x10]
and edx, 0x10000
je 0x412c03
mov dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x120]
add eax, 0x356
push eax
mov ecx, dword [ebp - 0x120]
add ecx, 0x45a
push ecx
call fcn.00411f20
add esp, 8
movzx edx, al
test edx, edx
je 0x412c03
lea eax, [ebp - 0xb4]
push eax
call fcn.004152f0
add esp, 4
mov dword [ebp - 0x134], eax
mov ecx, dword [ebp - 0x134]
mov dword [ebp - 0x138], ecx
mov dword [ebp - 4], 3
push str.hotsauce.dll
mov edx, dword [ebp - 0x138]
push edx
lea eax, [ebp - 0x60]
push eax
call fcn.00409560
add esp, 0xc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xb4]
call fcn.004017d0
lea ecx, [ebp - 0x60]
push ecx
mov ecx, dword [ebp - 0x120]
add ecx, 0x184
call fcn.00412290
movzx edx, al
test edx, edx
je 0x412bf4
mov eax, dword [ebp + 0x10]
and eax, 0xff0000
mov ecx, dword [ebp - 0x120]
mov dword [ecx + 0x28c], eax
lea ecx, [ebp - 0x60]
call fcn.004018a0
push eax
push 0x104
mov edx, dword [ebp - 0x120]
add edx, 0x184
push edx
call fcn.00414550
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 6
mov ecx, 0x4b2370
call fcn.00408a90
mov dword [ebp - 0x13c], eax
mov ecx, dword [ebp - 0x13c]
call fcn.00414780
mov byte [ebp - 0x13d], al
movzx eax, byte [ebp - 0x13d]
test eax, eax
je 0x41293c
mov ecx, dword [ebp - 0x120]
mov edx, dword [ecx + 0x28c]
or edx, 0x40000
mov eax, dword [ebp - 0x120]
mov dword [eax + 0x28c], edx
jmp 0x412962
mov dword [ebp - 4], 5
lea ecx, [ebp - 0xd0]
push ecx
mov ecx, 0x4b2370
call fcn.00408a90
mov ecx, eax
call fcn.00408780
mov dword [ebp - 0x144], eax
mov edx, dword [ebp - 0x144]
mov dword [ebp - 0x148], edx
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x148]
call fcn.004018a0
push eax
push 0x20
mov eax, dword [ebp - 0x120]
add eax, 0x290
push eax
call fcn.00414550
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xd0]
call fcn.004017d0
lea ecx, [ebp - 0xec]
push ecx
mov ecx, 0x4b2370
call fcn.00408a90
mov ecx, eax
call fcn.00408700
mov dword [ebp - 0x14c], eax
mov edx, dword [ebp - 0x14c]
mov dword [ebp - 0x150], edx
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x150]
call fcn.004018a0
push eax
push 0x20
mov eax, dword [ebp - 0x120]
add eax, 0x2b0
push eax
call fcn.00414550
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xec]
call fcn.004017d0
push 0x4906f0
lea ecx, [ebp - 0xf4]
call fcn.00414130
mov dword [ebp - 0x154], eax
mov ecx, dword [ebp - 0x154]
mov dword [ebp - 0x158], ecx
mov byte [ebp - 4], 0xa
lea edx, [ebp - 0xfc]
push edx
mov ecx, 0x4b25bc
call fcn.00418610
push eax
mov eax, dword [ebp - 0x158]
push eax
lea ecx, [ebp - 0xf8]
push ecx
mov ecx, 0x4b25bc
call fcn.00412f70
mov ecx, eax
call fcn.00413000
mov byte [ebp - 0xed], al
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xf4]
call fcn.004141c0
movzx edx, byte [ebp - 0xed]
test edx, edx
je 0x412b0d
push str.sponsorCode
lea ecx, [ebp - 0x100]
call fcn.00414130
mov dword [ebp - 0x15c], eax
mov eax, dword [ebp - 0x15c]
mov dword [ebp - 0x160], eax
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x160]
push ecx
mov ecx, 0x4b25bc
call fcn.00412e70
mov ecx, eax
call fcn.004141e0
push eax
push 0x490720
push 0x26
mov edx, dword [ebp - 0x120]
add edx, 0x320
push edx
call fcn.00414590
add esp, 0x10
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x100]
call fcn.004141c0
jmp 0x412b1a
mov eax, dword [ebp - 0x120]
mov byte [eax + 0x320], 0
lea ecx, [ebp - 0x11c]
push ecx
mov ecx, 0x4b2370
call fcn.00408a90
mov ecx, eax
call fcn.00427fbe
mov dword [ebp - 0x164], eax
mov edx, dword [ebp - 0x164]
mov dword [ebp - 0x168], edx
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x168]
call fcn.004018a0
push eax
push 0x490724
push 0x28
mov eax, dword [ebp - 0x120]
add eax, 0x2d0
push eax
call fcn.00414590
add esp, 0x10
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x11c]
call fcn.004017d0
mov ecx, 0x4b2660
call fcn.004018a0
push eax
push 0x490728
push 0x28
mov ecx, dword [ebp - 0x120]
add ecx, 0x2f8
push ecx
call fcn.00414590
add esp, 0x10
mov dword [ebp - 0x44], eax
mov ecx, 0x4b2370
call fcn.0041c840
mov ecx, eax
call fcn.0040ad00
mov ecx, eax
call fcn.00408f20
push eax
push 0x49072c
push 0x10
mov edx, dword [ebp - 0x120]
add edx, 0x346
push edx
call fcn.00414590
add esp, 0x10
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x120]
add ecx, 0x184
call fcn.004123f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.004017d0
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.0045045c
mov esp, ebp
pop ebp
ret 0xc