Function at 0x456a60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8d22
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x56b06c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x74], ebx
push dword [ebx + 0x3e4]
mov esi, dword [ebx + 4]
lea edi, [ebx + 4]
mov dword [ebp - 0x7c], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, ebx
mov dword [ebx + 0x3e8], esi
neg ecx
lea eax, [ebx + 0x34]
sbb ecx, ecx
and ecx, eax
mov dword [ebx + 0x3ec], ecx
push dword [ebx + 0x3e4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x10
mov ecx, ebx
call fcn.00457d20
push 0x18
mov ecx, ebx
mov dword [ebx + 0x318], eax
call fcn.00457d20
push 7
mov ecx, ebx
mov dword [ebx + 0x31c], eax
call fcn.00457c90
push 8
mov ecx, ebx
mov dword [ebx + 0x320], eax
call fcn.00457c90
push 0x14a
mov ecx, ebx
mov dword [ebx + 0x324], eax
call fcn.00457c90
lea esi, [ebx + 0x38]
mov dword [ebx + 0x328], eax
cmp dword [esi + 4], 0
jne 0x456b41
mov ecx, 4
lea eax, [esi - 0x34]
test esi, esi
push 0x3ec
cmove eax, ecx
push dword [eax]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
mov ecx, esi
call fcn.0045a970
push 0
push 0
push 0x31
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x5c
mov esi, eax
lea eax, [ebp - 0x70]
push 0
push eax
call fcn.004a9e70
add esp, 0xc
lea eax, [ebp - 0x70]
push eax
push 0x5c
push esi
call dword [sym.imp.GDI32.dll_GetObjectW]
cmp byte [ebx + 0x308], 0
mov eax, dword [ebp - 0x70]
mov dword [ebx + 0x25c], eax
mov dword [ebx + 0x2d4], eax
jne 0x456c13
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call fcn.0045b520
mov esi, eax
test esi, esi
je 0x456c13
mov ecx, dword [esi + 8]
add ebx, 0x30
mov edx, dword [esi + 0xc]
mov dword [ebp - 0x84], ebx
cmp ecx, edx
jne 0x456bfe
mov ebx, dword [esi + 4]
lea eax, [ebp - 0x80]
cmp eax, ebx
jb 0x456bc7
lea eax, [ebx + edx*4]
lea edi, [ebp - 0x80]
cmp edi, eax
jb 0x456d8f
test edx, edx
jne 0x456bd0
lea edi, [edx + 1]
jmp 0x456bdf
lea edi, [ecx + ecx]
test edi, edi
js 0x456c13
cmp edi, 0x1fffffff
ja 0x456c13
push 4
push edi
push ebx
call fcn.004b9abf
add esp, 0xc
test eax, eax
je 0x456c13
mov ecx, dword [esi + 8]
mov ebx, dword [ebp - 0x84]
mov dword [esi + 0xc], edi
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
lea eax, [eax + ecx*4]
test eax, eax
je 0x456c0d
mov dword [eax], ebx
mov ecx, dword [esi + 8]
lea eax, [ecx + 1]
mov dword [esi + 8], eax
mov esi, dword [0x572dac]
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
push 0xc
call ebx
push eax
push 0xb
call ebx
mov edi, dword [sym.imp.USER32.dll_LoadImageW]
push eax
push 1
push 0x80
push esi
call edi
push eax
mov eax, dword [ebp - 0x7c]
push 1
push 0x80
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [0x572dac]
push 0
push 0x32
call ebx
push eax
push 0x31
call ebx
push eax
push 1
push 0x80
push esi
call edi
mov esi, dword [ebp - 0x7c]
push eax
push 0
push 0x80
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, dword [ebp - 0x74]
mov ecx, edi
call fcn.00457dd0
mov ecx, edi
call fcn.00458bd0
push ecx
mov ecx, esi
call fcn.0045b230
push 0x138
call fcn.0048359c
add esp, 4
mov dword [ebp - 0x74], eax
mov dword [ebp - 4], 0
cmp dword [edi + 0x3d8], 0
push 0
setne cl
movzx ecx, cl
push ecx
lea ecx, [edi + 0x348]
push ecx
lea ecx, [edi + 0x3dc]
push ecx
mov ecx, eax
call fcn.00443a00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x74], 0
push dword [ebp - 0x74]
mov dword [ebp - 0x78], 0
push eax
call fcn.0045a9d0
mov eax, dword [ebp - 0x78]
mov dword [edi + 0x338], eax
mov esi, dword [edi + 0x33c]
mov eax, dword [ebp - 0x74]
mov dword [edi + 0x33c], eax
mov dword [ebp - 4], 1
test esi, esi
je 0x456d37
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x456d37
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x456d37
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [edi + 0x338]
lea eax, [esi + 8]
push eax
push 0
push esi
push 0x42b4c0
push 0
push 0
call fcn.004ba82b
add esp, 0x18
mov dword [esi + 4], eax
mov ecx, edi
call fcn.004594e0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048358b
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.00421000
int3