Function at 0x46a270
Capabilities:
Access peb ldr_data
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4eac0e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
push ebx
push ebp
xor eax, eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x1c], eax
push esi
mov dword [esp + 0x24], eax
xor ecx, ecx
push edi
lea edx, [esp + 0x20]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
push edx
lea eax, [esp + 0x150]
mov dword [esp + 0x38], ecx
xor ebp, ebp
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x40], ecx
call fcn.00459c60
mov ecx, dword [esp + 0x154]
movsx ebx, al
mov dword [esp + 0x38], ebx
mov si, word [ecx]
add esp, 8
cmp si, 0x2a
je 0x46a2ed
cmp si, 0x2d
je 0x46a2ed
cmp si, 0x2b
jne 0x46a2f5
add dword [esp + 0x14c], 2
lea edx, [esp + 0x14c]
push edx
call fcn.00443850
lea eax, [esp + 0x148]
push eax
call fcn.00443850
add esp, 8
xor edi, edi
cmp ebx, ebp
mov dword [esp + 0x18], ebp
je 0x46a333
mov eax, dword [esp + 0x148]
cmp eax, ebp
je 0x46a333
mov cl, byte [eax + 0x69]
test cl, cl
jne 0x46a333
mov edi, dword [eax + 0x18]
jmp 0x46a339
xor ebx, ebx
mov dword [esp + 0x30], ebx
test bl, 2
je 0x46a342
mov dword [esp + 0x18], edi
cmp si, 0x2a
jne 0x46a61f
push 0x8c4
call fcn.004cc845
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
cmp esi, ebp
mov dword [esp + 0x13c], ebp
je 0x46a384
push ebp
push ebp
push ebp
push ebp
push ebp
push 0x271b
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
mov ecx, esi
call fcn.00459820
mov ebp, eax
mov dword [esp + 0x68], ebp
push 0x98
mov dword [esp + 0x140], 1
call fcn.004cc845
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0x13c], 2
je 0x46a3c1
mov ecx, dword [esp + 0x14]
push ebp
push ecx
mov ecx, eax
call fcn.00432f6c
mov ebx, eax
jmp 0x46a3c3
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov edx, dword [esp + 0x150]
mov esi, dword [esp + 0x14c]
push 0
push esi
mov ecx, ebx
mov byte [esp + 0x144], 3
mov byte [ebx + 0x8d], 3
mov dword [ebx + 0x1c], edx
call fcn.0045b8a0
mov eax, dword [esp + 0x144]
push 1
mov ecx, ebp
mov dword [ebp + 0x88], edi
mov dword [ebp + 0x13c], ebx
mov dword [ebp + 0x144], eax
call fcn.00469220
test esi, esi
mov dword [esp + 0x10], 0
je 0x46a453
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
lea ecx, [edi + 2]
push ecx
call fcn.00449130
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add esp, 4
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x14c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push esi
call fcn.0045bfa0
add esp, 8
push eax
lea ecx, [ebp + 0x6c]
call fcn.00456630
mov eax, dword [esp + 0x10]
test eax, eax
je 0x46a485
mov ecx, dword [0x51d3c8]
add eax, 0xfffffff8
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
test esi, esi
je 0x46a49c
mov al, byte [ebp + 0x69]
test al, al
je 0x46a49c
push esi
lea ecx, [ebp + 0x90]
call fcn.00456630
mov al, byte [ebp + 0x69]
test al, al
mov edi, 0x271b
jne 0x46a4c3
mov al, byte [ebp + 0x8d]
test al, al
jne 0x46a4c3
mov al, byte [ebp + 0x8e]
test al, al
je 0x46a4c8
mov edi, 0x271d
jmp 0x46a4c8
mov edi, 0x271c
push ebp
call fcn.00416c03
mov eax, dword [esp + 0x14c]
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add esp, 4
test eax, eax
je 0x46a508
push 0x51d5ec
call esi
mov eax, dword [esp + 0x148]
mov ecx, dword [eax + 0xc0]
inc ecx
push 0x51d5ec
mov dword [eax + 0xc0], ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x20]
push edx
push eax
push edi
push ebp
call fcn.00446160
mov eax, dword [ebp + 0x18]
push eax
lea ecx, [esp + 0x80]
push str.0x_X
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
mov edi, dword [esp + 0x30]
add esp, 0x1c
lea edx, [esp + 0x6c]
push edx
push str.__LastWinID
mov ecx, edi
call fcn.00448be0
push 0
mov ecx, ebp
call fcn.004a8590
push 0x51d5ec
mov dword [esp + 0x1c], eax
call esi
push 0x51d5ec
mov dword [ebx + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, ebx
mov byte [esp + 0x13c], 1
call fcn.00416681
push ebx
call fcn.004cc875
mov eax, dword [ebp]
add esp, 4
push 1
mov ecx, ebp
mov dword [esp + 0x140], 0xffffffff
call dword [eax + 0xc]
mov ebp, dword [esp + 0x148]
test ebp, ebp
je 0x46a600
push 0x51d5ec
call esi
mov eax, dword [ebp + 0xc0]
dec eax
test eax, eax
jle 0x46a5c9
mov cl, byte [ebp + 0x69]
test cl, cl
je 0x46a5c9
cmp dword [edi + 0x18], 2
jg 0x46a5c9
mov bl, 1
jmp 0x46a5cb
xor bl, bl
mov dword [ebp + 0xc0], eax
cmp byte [ebp + 0x69], 0x81
je 0x46a5ea
mov ecx, dword [ebp + 0x18]
push 0
push 0
push 0x43d
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
test bl, bl
je 0x46a5f5
mov byte [0x519300], 0xff
push 0x51d5ec
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x134]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x130
ret 0x10
cmp si, 0x2d
jne 0x46a820
push 0x8c4
call fcn.004cc845
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
cmp esi, ebp
mov dword [esp + 0x13c], 4
je 0x46a667
push ebp
push ebp
push ebp
push ebp
push ebp
push 0x271b
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
mov ecx, esi
call fcn.00459820
mov esi, eax
jmp 0x46a669
xor esi, esi
or ebx, 0xffffffff
push 0x98
mov dword [esp + 0x140], ebx
call fcn.004cc845
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebp
mov dword [esp + 0x13c], 5
je 0x46a6a2
mov edx, dword [esp + 0x14]
push esi
push edx
mov ecx, eax
call fcn.00432f6c
mov ebp, eax
mov eax, dword [esp + 0x150]
mov dword [esp + 0x13c], ebx
mov ebx, dword [esp + 0x14c]
push 0
push ebx
mov ecx, ebp
mov byte [ebp + 0x8d], 3
mov dword [ebp + 0x1c], eax
call fcn.0045b8a0
mov ecx, dword [esp + 0x144]
mov dword [esi + 0x144], ecx
push 1
mov ecx, esi
mov dword [esi + 0x88], edi
mov dword [esi + 0x13c], ebp
call fcn.00469220
mov edx, dword [esi + 0x13c]
push ebx
lea ecx, [esp + 0x14]
mov dword [esi + 0x138], edx
call fcn.004134f5
lea eax, [esp + 0x10]
push eax
push ebx
lea ebp, [esi + 0x6c]
call fcn.0045bfa0
add esp, 8
push eax
mov ecx, ebp
call fcn.00456630
mov eax, dword [esp + 0x10]
test eax, eax
je 0x46a737
mov ecx, dword [0x51d3c8]
add eax, 0xfffffff8
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0x38]
test eax, eax
je 0x46a747
push eax
mov ecx, ebp
call fcn.004566f0
test ebx, ebx
je 0x46a75e
mov al, byte [esi + 0x69]
test al, al
je 0x46a75e
push ebx
lea ecx, [esi + 0x90]
call fcn.00456630
mov al, byte [esi + 0x69]
test al, al
mov ebx, 0x271b
jne 0x46a785
mov al, byte [esi + 0x8d]
test al, al
jne 0x46a785
mov al, byte [esi + 0x8e]
test al, al
je 0x46a78a
mov ebx, 0x271d
jmp 0x46a78a
mov ebx, 0x271c
push esi
call fcn.00416c03
mov edi, dword [esp + 0x14c]
add esp, 4
test edi, edi
mov byte [esi + 0x68], 1
mov dword [esi + 0x4c], edi
je 0x46a7c8
push 0x51d5ec
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [edi + 0xc0]
inc ecx
push 0x51d5ec
mov dword [edi + 0xc0], ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x20]
push edx
push eax
push ebx
push esi
call fcn.00446160
mov ecx, dword [esi + 0x18]
push ecx
lea edx, [esp + 0x80]
push str.0x_X
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [esp + 0x30]
add esp, 0x1c
lea eax, [esp + 0x6c]
push eax
push str.__LastWinID
call fcn.00448be0
mov ecx, dword [esi + 0x18]
push 0
push 0
push 0x110
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
jmp 0x46a604
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x144]
mov ecx, dword [esp + 0x14c]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x150]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], 4
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], ebp
lea eax, [esp + 0x20]
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], edi
push 0x51d5c4
mov dword [esp + 0x68], ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [esp + 0x58]
push ecx
push 0x10000
lea edx, [esp + 0x44]
push edx
push 0x469d60
push 0x100000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
je 0x46a8d3
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, 0x270f
lea esp, [esp]
mov eax, dword [esp + 0x48]
test eax, eax
je 0x46a8d3
push 0
call esi
dec ebx
jns 0x46a8b0
mov eax, dword [esp + 0x48]
test eax, eax
je 0x46a8d3
push 1
call esi
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x46a8c7
push 0x51d5c4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebp, ebp
je 0x46a8e9
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x58]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push eax
lea ecx, [esp + 0x70]
push 0x4f93cc
push ecx
call esi
mov edi, dword [esp + 0x20]
add esp, 0xc
lea edx, [esp + 0x6c]
push edx
push str.__LastTID
mov ecx, edi
call fcn.00448be0
mov eax, dword [esp + 0x54]
push eax
lea eax, [esp + 0xd4]
push str.0x_X
push eax
call esi
add esp, 0xc
lea ecx, [esp + 0xd0]
push ecx
push str.__LastWinID
mov ecx, edi
call fcn.00448be0
xor eax, eax
jmp 0x46a604