Function at 0x402092
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], esp
push dword [ebp + 8]
call dword [0x42b3dd]
nop
nop
nop
nop
cmp dword [ebp - 0x20], esp
je 0x4020f8
push 0x24
push 0x401006f
push 6
call fcn.004234de
add esp, 0xc
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 1
je 0x40210f
mov eax, 0
jmp 0x40266b
mov dword [ebp - 0x20], esp
push str.WindowCallback
push dword [ebp + 8]
call dword [0x42b3e1]
nop
nop
nop
nop
cmp dword [ebp - 0x20], esp
je 0x402140
push 0x90
push 0x401006f
push 6
call fcn.004234de
add esp, 0xc
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x402157
mov eax, 1
jmp 0x40266b
push dword [ebp + 8]
call fcn.00402671
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x402176
mov eax, 0
jmp 0x40266b
mov dword [ebp - 0x20], esp
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
nop
nop
nop
nop
cmp dword [ebp - 0x20], esp
je 0x4021a6
push 0x170
push 0x401006f
push 6
call fcn.004234de
add esp, 0xc
cmp dword [ebp - 8], 0
jne 0x4021ba
mov eax, 0
jmp 0x40266b
mov dword [ebp - 0x20], esp
push dword [ebp - 8]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
nop
nop
nop
nop
cmp dword [ebp - 0x20], esp
je 0x4021f0
push 0x1f8
push 0x401006f
push 6
call fcn.004234de
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x402207
mov eax, 0
jmp 0x40266b
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x198
call fcn.00423d10
add esp, 0x10
mov dword [ebp - 0x20], eax
push 0x4282a9
push dword [ebp - 0x20]
push 0x42838d
mov ecx, 3
call fcn.004010d7
add esp, 0xc
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x402253
push ebx
call fcn.004234ea
add esp, 4
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0xc]
call fcn.00402a66
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x402272
push ebx
call fcn.004234ea
add esp, 4
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
push 0x80000301
push 0
push dword [ebp - 0x10]
push 1
mov ebx, 0x198
call fcn.00423d10
add esp, 0x10
mov dword [ebp - 0x20], eax
push 0x80000301
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x198
call fcn.00423d10
add esp, 0x10
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], esp
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
nop
nop
nop
nop
cmp dword [ebp - 0x28], esp
je 0x4022e4
push 0x1022
push 0x401006f
push 6
call fcn.004234de
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], esp
push str.SetWindowLongA
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x402318
push 0x1022
push 0x401006f
push 6
call fcn.004234de
add esp, 0xc
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x198
call fcn.00423d10
add esp, 0x10
mov dword [ebp - 0x38], eax
push 0x428425
push dword [ebp - 0x38]
push 0x428433
push dword [ebp - 0x24]
push 0x42843c
push dword [ebp - 0x20]
push 0x428447
mov ecx, 7
call fcn.004010d7
add esp, 0x1c
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x402372
push ebx
call fcn.004234ea
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x402382
push ebx
call fcn.004234ea
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x402392
push ebx
call fcn.004234ea
add esp, 4
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0xc]
call fcn.00402a66
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x4023b1
push ebx
call fcn.004234ea
add esp, 4
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], esp
mov eax, 0
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push dword [ebp - 0x14]
push 0
push 0
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
nop
nop
nop
nop
cmp dword [ebp - 0x20], esp
je 0x402406
push 0x10af
push 0x401006f
push 6
call fcn.004234de
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4024bb
mov dword [ebp - 0x20], esp
push 0x8000
push 0
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
nop
nop
nop
nop
cmp dword [ebp - 0x20], esp
je 0x40244c
push 0x1134
push 0x401006f
push 6
call fcn.004234de
add esp, 0xc
mov dword [ebp - 0x20], esp
push 0x8000
push 0
push dword [ebp - 0x14]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
nop
nop
nop
nop
cmp dword [ebp - 0x20], esp
je 0x402485
push 0x1167
push 0x401006f
push 6
call fcn.004234de
add esp, 0xc
mov dword [ebp - 0x20], esp
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x20], esp
je 0x4024b1
push 0x119a
push 0x401006f
push 6
call fcn.004234de
add esp, 0xc
mov eax, 0
jmp 0x40266b
mov dword [ebp - 0x20], esp
push 0xffffffff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
nop
nop
nop
cmp dword [ebp - 0x20], esp
je 0x4024ec
push 0x11cc
push 0x401006f
push 6
call fcn.004234de
add esp, 0xc
mov dword [ebp - 0x20], esp
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
nop
nop
nop
nop
cmp dword [ebp - 0x20], esp
je 0x40251c
push 0x11ef
push 0x401006f
push 6
call fcn.004234de
add esp, 0xc
mov dword [ebp - 0x20], esp
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x20], esp
je 0x402548
push 0x1210
push 0x401006f
push 6
call fcn.004234de
add esp, 0xc
mov dword [ebp - 0x20], esp
push 0x8000
push 0
push dword [ebp - 0x14]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
nop
nop
nop
nop
cmp dword [ebp - 0x20], esp
je 0x402581
push 0x122a
push 0x401006f
push 6
call fcn.004234de
add esp, 0xc
cmp dword [ebp - 0x1c], 0
jne 0x4025ff
mov dword [ebp - 0x20], esp
push 0x8000
push 0
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
nop
nop
nop
nop
cmp dword [ebp - 0x20], esp
je 0x4025c4
push 0x1294
push 0x401006f
push 6
call fcn.004234de
add esp, 0xc
mov dword [ebp - 0x20], esp
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x20], esp
je 0x4025f0
push 0x12c7
push 0x401006f
push 6
call fcn.004234de
add esp, 0xc
mov eax, 0
jmp 0x40266b
mov dword [ebp - 0x20], esp
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x20], esp
je 0x40262b
push 0x12f9
push 0x401006f
push 6
call fcn.004234de
add esp, 0xc
mov dword [ebp - 0x20], esp
push 1
push str.WindowCallback
push dword [ebp + 8]
call dword [0x42b3e5]
nop
nop
nop
nop
cmp dword [ebp - 0x20], esp
je 0x402661
push 0x1313
push 0x401006f
push 6
call fcn.004234de
add esp, 0xc
mov eax, 1
jmp 0x40266b
mov esp, ebp
pop ebp
ret 4