Function at 0x45166c
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x496d84
push 0x470600
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], ebx
push 3
call fcn.00484d94
mov eax, dword [0x496d68]
mov edx, dword [0x496d6c]
mov ecx, dword [0x496d70]
mov ebx, dword [0x496d74]
mov esi, dword [0x496d78]
mov edi, dword [0x496d7c]
mov dword [ebp - 0x60], eax
mov eax, dword [0x496d80]
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], eax
push 0x200
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x38], eax
call fcn.0046e46e
add esp, 8
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [0x4b0000], eax
push 0x100
push dword [ebp - 0x34]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x451735
mov esi, dword [ebp - 0x34]
mov dword [ebp - 0x3c], esi
mov edi, 0x4b7034
mov dl, byte [edi]
add edi, 1
mov byte [esi], dl
add esi, 1
test dl, dl
jne 0x451722
mov eax, dword [ebp - 0x3c]
jmp 0x451742
mov eax, dword [ebp - 0x34]
push edi
call fcn.00451920
pop ecx
mov dword [ebp - 0x3c], eax
push dword [ebp + 0x14]
push dword [ebp + 8]
push 0x32
push 1
push eax
call fcn.0045bb8c
add esp, 0x14
cmp eax, 0xffffffff
jne 0x451778
xor eax, eax
mov esp, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
push dword [ebp - 0x34]
call fcn.0046e793
pop ecx
call fcn.00451a90
push 1
call fcn.0045cde4
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov dword [ebp - 0x44], eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0x4b0004
mov dword [ebp - 0x38], eax
xor eax, eax
push 4
push eax
push 0x45198c
push eax
push eax
call fcn.0047094d
add esp, 0x18
mov dword [ebp - 0x40], eax
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [ebp - 4], 0
mov dword [ebp - 4], 1
jmp 0x451818
lea edx, [ebp - 0x60]
xor eax, eax
push eax
push eax
push eax
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jle 0x4518d0
lea eax, [ebp - 0x60]
push eax
push dword [0x4a28d0]
call dword [sym.imp.USER32.dll_TranslateMDISysAccel]
test eax, eax
jne 0x451857
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
mov eax, dword [0x4aef00]
test eax, eax
je 0x451878
push 0
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [ebp - 0x38], eax
mov dword [0x4aef00], 0
lea edx, [ebp - 0x60]
xor eax, eax
push eax
push eax
push eax
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jg 0x45182f
jmp 0x4518d0
push 0
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [ebp - 0x38], eax
call fcn.0042f2ec
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x64], edx
mov eax, 0xffffffff
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00470781
add esp, 8
mov eax, dword [ebp - 0x64]
mov esp, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10