Function at 0x4a04a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x686c02
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x79cac4]
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.004a1200
push 0x18
mov ecx, ebx
mov dword [ebx + 0x318], eax
call fcn.004a1200
push 7
mov ecx, ebx
mov dword [ebx + 0x31c], eax
call fcn.004a1170
push 8
mov ecx, ebx
mov dword [ebx + 0x320], eax
call fcn.004a1170
push 0x14a
mov ecx, ebx
mov dword [ebx + 0x324], eax
call fcn.004a1170
lea esi, [ebx + 0x38]
mov dword [ebx + 0x328], eax
cmp dword [esi + 4], 0
jne 0x4a0581
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.004a3890
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.0064cf50
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 0x4a0653
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call fcn.004a4440
mov esi, eax
test esi, esi
je 0x4a0653
mov ecx, dword [esi + 8]
add ebx, 0x30
mov edx, dword [esi + 0xc]
mov dword [ebp - 0x84], ebx
cmp ecx, edx
jne 0x4a063e
mov ebx, dword [esi + 4]
lea eax, [ebp - 0x80]
cmp eax, ebx
jb 0x4a0607
lea eax, [ebx + edx*4]
lea edi, [ebp - 0x80]
cmp edi, eax
jb 0x4a07cf
test edx, edx
jne 0x4a0610
lea edi, [edx + 1]
jmp 0x4a061f
lea edi, [ecx + ecx]
test edi, edi
js 0x4a0653
cmp edi, 0x1fffffff
ja 0x4a0653
push 4
push edi
push ebx
call fcn.0065e6cf
add esp, 0xc
test eax, eax
je 0x4a0653
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 0x4a064d
mov dword [eax], ebx
mov ecx, dword [esi + 8]
lea eax, [ecx + 1]
mov dword [esi + 8], eax
mov esi, dword [0x7a98e8]
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 [0x7a98e8]
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.004a12b0
mov ecx, edi
call fcn.004a1e40
push ecx
mov ecx, esi
call fcn.004a4150
push 0x130
call fcn.006116d4
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.00489640
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.004a38f0
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 0x4a0777
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x4a0777
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x4a0777
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 0x474300
push 0
push 0
call fcn.0065f4c6
add esp, 0x18
mov dword [esi + 4], eax
mov ecx, edi
call fcn.004a2470
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.006116c3
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.0046abb0
int3