Function at 0x49ac60
Capabilities:
Check for time delay via gettickcount
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4d938b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x160
mov eax, dword [0x50ba00]
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x168], eax
cmp dword [esi], 0
push edi
je 0x49c239
lea ebp, [esi + 0x114]
push 0
mov ecx, ebp
mov dword [esp + 0x64], ebp
call fcn.004979f0
mov ebx, eax
test ebx, ebx
je 0x49ad4b
lea edi, [esi + 0xcc]
jmp 0x49acc0
mov ebp, dword [esp + 0x60]
nop
push 0
mov ecx, ebp
call fcn.00497970
mov eax, dword [ebx + 0x88]
test eax, eax
je 0x49acee
lea ecx, [eax + 0x34]
call fcn.0049c700
test eax, eax
je 0x49acee
mov ecx, dword [ebx + 0x88]
push ebx
add ecx, 0x34
call fcn.0049c770
mov ecx, edi
xor ebp, ebp
call fcn.0049c670
test eax, eax
jle 0x49ad1b
jmp 0x49ad00
push ebp
mov ecx, edi
call fcn.00497a10
mov edx, dword [eax]
push ebx
mov ecx, eax
call dword [edx]
mov ecx, edi
inc ebp
call fcn.0049c670
cmp ebp, eax
jl 0x49ad00
mov eax, dword [ebx]
lea ecx, [ebx + 4]
cmp eax, ecx
je 0x49ad2d
push eax
call fcn.00482838
add esp, 4
push ebx
call fcn.004cabc1
mov ecx, dword [esp + 0x64]
add esp, 4
push 0
call fcn.004979f0
mov ebx, eax
test ebx, ebx
jne 0x49acbb
lea ecx, [esi + 0xf0]
mov dword [esp + 0x50], 0
call fcn.0049c670
test eax, eax
mov ebx, dword [esp + 0x188]
mov ebp, dword [esp + 0x184]
mov edi, dword [esp + 0x180]
jle 0x49adc8
jmp 0x49ad80
mov edx, dword [esp + 0x50]
push edx
lea ecx, [esi + 0xf0]
mov dword [esp + 0x34], 0
call fcn.00497a10
mov edx, dword [eax]
lea ecx, [esp + 0x30]
push ecx
push ebx
push ebp
push edi
mov ecx, eax
call dword [edx]
mov ecx, dword [esp + 0x30]
test ecx, ecx
jne 0x49ae03
mov edx, dword [esp + 0x50]
inc edx
lea ecx, [esi + 0xf0]
mov dword [esp + 0x50], edx
call fcn.0049c670
cmp dword [esp + 0x50], eax
jl 0x49ad80
cmp edi, 0x113
ja 0x49b86c
je 0x49b7c2
cmp edi, 0x4e
ja 0x49b5a4
je 0x49b58d
lea eax, [edi - 5]
cmp eax, 0x1f
ja case.0x49b896.308
movzx eax, byte [eax + 0x49c280]
jmp dword [eax*4 + 0x49c264]
mov edx, dword [esp + 0x18c]
mov dword [edx], eax
mov eax, 1
jmp 0x49c23b
mov edx, dword [esi + 0x64]
mov eax, dword [esi + 0x68]
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x58]
test ecx, ecx
mov dword [esp + 0x18], eax
je 0x49ae74
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0xa
mov dword [esp + 0x14], ecx
mov edx, dword [ecx]
push eax
call dword [edx + 0xf8]
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x49ae94
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0xe
mov dword [esp + 0x14], ecx
mov edx, dword [ecx]
push eax
call dword [edx + 0xf8]
push 0
mov ecx, esi
call fcn.0049a750
mov ecx, dword [esi]
push 4
push ecx
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je case.0x49b896.308
push eax
call dword [sym.imp.USER32.dll_SetFocus]
jmp case.0x49b896.308
mov edx, dword [esp + 0x18c]
mov dword [edx], 1
mov eax, 1
jmp 0x49c23b
mov edx, dword [esi]
xor ebp, ebp
xor eax, eax
push ebp
lea ecx, [esp + 0x54]
mov dword [esp + 0x58], eax
push ecx
mov dword [esp + 0x60], eax
push edx
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x68], eax
call dword [sym.imp.USER32.dll_GetUpdateRect]
test eax, eax
je 0x49bc7f
cmp dword [esi + 0x50], ebp
jne 0x49af46
xor eax, eax
mov dword [esp + 0xa4], ebp
mov ecx, 0xf
lea edi, [esp + 0xa8]
rep stosd dword es:[edi], eax
mov ecx, dword [esi]
lea eax, [esp + 0xa4]
push eax
push ecx
call dword [sym.imp.USER32.dll_BeginPaint]
mov eax, dword [esi]
lea edx, [esp + 0xa4]
push edx
push eax
call dword [sym.imp.USER32.dll_EndPaint]
mov eax, 1
jmp 0x49c23b
cmp dword [esi + 0xb4], ebp
je 0x49b07c
mov eax, dword [esi]
xor ecx, ecx
lea edx, [esp + 0x30]
mov dword [esp + 0x34], ecx
push edx
mov dword [esp + 0x3c], ecx
push eax
mov dword [esi + 0xb4], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x44], ecx
call dword [sym.imp.USER32.dll_GetClientRect]
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x49b07c
mov ecx, dword [esi + 0x50]
call fcn.0049cec0
test eax, eax
mov ecx, dword [esi + 0x50]
mov edx, dword [ecx]
je 0x49b001
mov edi, dword [esp + 0x30]
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov edi, dword [esp + 0x44]
mov dword [eax + 4], edi
mov edi, dword [esp + 0x48]
mov dword [eax + 8], edi
mov edi, dword [esp + 0x4c]
mov dword [eax + 0xc], edi
call dword [edx + 0x34]
mov eax, dword [esi + 8]
cmp eax, ebp
mov edi, dword [sym.imp.GDI32.dll_DeleteDC]
je 0x49afcf
push eax
call edi
mov eax, dword [esi + 0xc]
cmp eax, ebp
je 0x49afd9
push eax
call edi
mov eax, dword [esi + 0x10]
cmp eax, ebp
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
je 0x49afe9
push eax
call edi
mov eax, dword [esi + 0x14]
cmp eax, ebp
je 0x49aff3
push eax
call edi
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], ebp
mov dword [esi + 0x14], ebp
jmp 0x49b05b
push reloc.gouzi.dll_Ordinal_1
push ebp
push 0x499410
call dword [edx + 0xec]
mov ebx, eax
cmp ebx, ebp
je 0x49b05b
mov edi, dword [ebx]
mov ecx, ebx
call dword [edi + 0x30]
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, ebx
call dword [edi + 0x34]
mov ecx, dword [esi + 0x50]
mov edx, dword [ecx]
push reloc.gouzi.dll_Ordinal_1
push ebp
push 0x499410
call dword [edx + 0xec]
mov ebx, eax
cmp ebx, ebp
jne 0x49b018
cmp dword [esi + 0xb0], ebp
je 0x49b07c
mov eax, dword [esi + 0x50]
push ebp
push ebp
push ebp
push 0x4dda90
push eax
mov ecx, esi
mov dword [esi + 0xb0], ebp
call fcn.0049a4b0
cmp dword [esi + 0xb8], ebp
mov edi, 1
je 0x49b121
cmp dword [esi + 0xb4], ebp
je 0x49b0a8
mov ecx, dword [esi]
push ebp
push ebp
push ecx
mov dword [esi + 0xb8], edi
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x49b121
mov eax, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
xor edx, edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], edx
push reloc.WSOCK32.dll_closesocket
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], edi
mov edx, dword [ecx]
push 0x499340
call dword [edx + 0xec]
cmp eax, ebp
jne 0x49b113
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
push reloc.WSOCK32.dll_closesocket
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + 0x50]
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], edi
mov edx, dword [ecx]
push 0x499340
call dword [edx + 0xec]
cmp eax, ebp
je 0x49b11b
push eax
mov ecx, esi
call fcn.0049a750
mov dword [esi + 0xb8], ebp
cmp dword [esi + 0xbc], ebp
mov ebx, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
je 0x49b180
cmp dword [esi + 0x10], ebp
jne 0x49b180
mov eax, dword [esi]
xor ecx, ecx
lea edx, [esp + 0x40]
mov dword [esp + 0x44], ecx
push edx
mov dword [esp + 0x4c], ecx
push eax
mov dword [esp + 0x48], ebp
mov dword [esp + 0x54], ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esi + 4]
push ecx
call ebx
mov edx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x44]
mov ecx, dword [esi + 4]
sub edx, ebp
push edx
mov edx, dword [esp + 0x44]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x4c]
sub eax, edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esi + 0x10], eax
xor eax, eax
mov dword [esp + 0x64], 0
mov ecx, 0xf
lea edi, [esp + 0x68]
lea edx, [esp + 0x64]
rep stosd dword es:[edi], eax
mov eax, dword [esi]
push edx
push eax
call dword [sym.imp.USER32.dll_BeginPaint]
mov eax, dword [esi + 0xbc]
test eax, eax
je 0x49b397
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 8]
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
push ecx
push edx
call ebp
mov dword [esp + 0x60], eax
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.GDI32.dll_SaveDC]
mov edi, dword [sym.imp.GDI32.dll_BitBlt]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0xc0]
test eax, eax
je 0x49b2a9
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x49b273
xor ecx, ecx
lea edx, [esp + 0x40]
mov dword [esp + 0x40], eax
mov eax, dword [esi]
mov dword [esp + 0x44], ecx
push edx
mov dword [esp + 0x4c], ecx
push eax
mov dword [esp + 0x54], ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esi + 4]
push ecx
call ebx
mov edx, dword [esp + 0x4c]
mov ecx, dword [esi + 4]
mov dword [esi + 0xc], eax
sub edx, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
push edx
sub eax, dword [esp + 0x44]
push eax
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edx, dword [esi + 0xc]
push eax
push edx
mov dword [esi + 0x14], eax
call ebp
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x64]
push 0xcc0020
push eax
push ecx
push edx
mov edx, dword [esp + 0x88]
sub edx, eax
push edx
mov edx, dword [esp + 0x88]
sub edx, ecx
push edx
push eax
mov eax, dword [esi + 0xc]
push ecx
push eax
call edi
jmp 0x49b27a
mov ecx, dword [esi + 0xc]
push eax
push ecx
call ebp
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esi + 0xc]
push 0xcc0020
push eax
push ecx
push edx
mov edx, dword [esp + 0x88]
sub edx, eax
push edx
mov edx, dword [esp + 0x88]
sub edx, ecx
push edx
push eax
mov eax, dword [esi + 8]
push ecx
push eax
call edi
mov ecx, dword [esi + 0x50]
mov edx, dword [ecx]
lea eax, [esp + 0x6c]
push eax
mov eax, dword [esi + 8]
push eax
call dword [edx + 0x108]
lea ebx, [esi + 0xfc]
mov ecx, ebx
xor edi, edi
call fcn.0049c670
test eax, eax
jle 0x49b2f7
push edi
mov ecx, ebx
call fcn.00497a10
mov edx, dword [eax]
lea ecx, [esp + 0x6c]
push ecx
mov ecx, dword [esi + 8]
push ecx
mov ecx, eax
call dword [edx + 0x120]
mov ecx, ebx
inc edi
call fcn.0049c670
cmp edi, eax
jl 0x49b2d0
mov edx, dword [esp + 0x30]
mov eax, dword [esi + 8]
push edx
push eax
call dword [sym.imp.GDI32.dll_RestoreDC]
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esi + 8]
push 0xcc0020
push eax
push ecx
push edx
mov edx, dword [esp + 0x88]
sub edx, eax
push edx
mov edx, dword [esp + 0x88]
sub edx, ecx
push edx
push eax
mov eax, dword [esp + 0x80]
push ecx
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x60]
mov edx, dword [esi + 8]
push ecx
push edx
call ebp
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x49b3c5
mov eax, dword [0x51bf94]
mov ecx, dword [esp + 0x64]
push eax
push ecx
call ebp
push 5
mov edi, eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov edx, dword [esp + 0x64]
push eax
push edx
call ebp
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x6c]
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_Rectangle]
mov edx, dword [esp + 0x64]
push edi
push edx
call ebp
jmp 0x49b3c5
mov eax, dword [esp + 0x64]
push eax
call dword [sym.imp.GDI32.dll_SaveDC]
mov ecx, dword [esi + 0x50]
mov edx, dword [ecx]
mov edi, eax
lea eax, [esp + 0x6c]
push eax
mov eax, dword [esp + 0x68]
push eax
call dword [edx + 0x108]
mov ecx, dword [esp + 0x64]
push edi
push ecx
call dword [sym.imp.GDI32.dll_RestoreDC]
mov eax, dword [esi]
lea edx, [esp + 0x64]
push edx
push eax
call dword [sym.imp.USER32.dll_EndPaint]
mov eax, dword [esi + 0xb4]
test eax, eax
je 0x49bc7f
mov ecx, dword [esi]
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, 1
jmp 0x49c23b
mov eax, dword [esi + 0x6c]
test eax, eax
jle 0x49b402
mov dword [ebx + 0x18], eax
mov eax, dword [esi + 0x70]
test eax, eax
jle 0x49b40c
mov dword [ebx + 0x1c], eax
mov eax, dword [esi + 0x74]
test eax, eax
jle 0x49b416
mov dword [ebx + 0x20], eax
mov eax, dword [esi + 0x78]
test eax, eax
jle case.0x49b896.308
mov dword [ebx + 0x24], eax
jmp case.0x49b896.308
mov eax, dword [esi + 0x54]
test eax, eax
je 0x49b474
xor edx, edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x10], 0x16
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x54]
lea edx, [esp + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0xf8]
mov esi, dword [esi + 0x50]
test esi, esi
je 0x49bc7f
mov ecx, esi
call fcn.0049ced0
mov eax, 1
jmp 0x49c23b
cmp bx, 1
jne case.0x49b896.308
mov ecx, dword [esi + 0xc8]
xor eax, eax
cmp ecx, eax
jne 0x49bc7f
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [esi]
lea ecx, [esp + 0x40]
push ecx
push edx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
push eax
push ecx
mov ecx, esi
call fcn.00499750
mov edi, eax
test edi, edi
je case.0x49b896.308
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x14]
test al, 2
je case.0x49b896.308
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
xor eax, eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], eax
mov dword [esp + 0xa4], 0x17
mov dword [esp + 0xbc], ebp
mov dword [esp + 0xc0], ebx
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xb4], edx
call fcn.00498700
mov word [esp + 0xba], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [esp + 0xa4]
mov dword [esp + 0xac], eax
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0xf8]
mov eax, 1
jmp 0x49c23b
test ebx, ebx
je 0x49bc7f
mov edx, dword [ebx]
push ebx
push ebp
push 0x204e
push edx
jmp 0x49bc70
lea eax, [edi - 0x7b]
cmp eax, 0x96
ja case.0x49b896.308
movzx edx, byte [eax + 0x49c2b8]
jmp dword [edx*4 + 0x49c2a0]
movsx eax, bx
shr ebx, 0x10
lea edx, [esp + 0x30]
mov dword [esp + 0x30], eax
mov eax, dword [esi]
movsx ecx, bx
push edx
push eax
mov dword [esp + 0x3c], ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esi + 0x5c]
test eax, eax
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [esi + 0x64], ecx
mov dword [esi + 0x68], edx
je case.0x49b896.308
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x5c]
xor edi, edi
mov dword [esi + 0xc8], edi
mov dword [esp + 0x10], 0x11
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov word [esp + 0x26], bp
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x5c]
lea edx, [esp + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0xf8]
mov dword [esi + 0x5c], edi
jmp case.0x49b896.308
mov eax, dword [esi + 0x54]
test eax, eax
je case.0x49b896.308
mov ecx, dword [esi + 0x64]
mov edx, dword [esi + 0x68]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], 5
mov word [esp + 0x24], bp
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
call fcn.00498700
mov word [esp + 0x26], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x54]
lea edx, [esp + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0xf8]
jmp case.0x49b896.308
mov eax, dword [esi + 0x54]
test eax, eax
je case.0x49b896.308
mov ecx, dword [esi + 0x64]
mov edx, dword [esi + 0x68]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], 3
mov word [esp + 0x24], bp
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
call fcn.00498700
mov word [esp + 0x26], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x54]
lea edx, [esp + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0xf8]
mov eax, dword [esi + 0x54]
mov dword [esi + 0x60], eax
jmp case.0x49b896.308
mov eax, dword [esi + 0x60]
test eax, eax
je case.0x49b896.308
mov edx, dword [esi + 0x64]
mov eax, dword [esi + 0x68]
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x10], 4
mov word [esp + 0x24], bp
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
call fcn.00498700
mov word [esp + 0x26], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x60]
mov dword [esp + 0x18], eax
mov edx, dword [ecx]
lea eax, [esp + 0x10]
push eax
call dword [edx + 0xf8]
mov dword [esi + 0x60], 0
jmp case.0x49b896.308
lea ecx, [esi + 0xd8]
xor ebx, ebx
call fcn.0049c670
test eax, eax
jle case.0x49b896.308
jmp 0x49b7e0
push ebx
lea ecx, [esi + 0xd8]
call fcn.00497a10
mov edi, eax
mov edx, dword [edi + 8]
cmp edx, dword [esi]
jne 0x49b806
mov ecx, dword [edi + 0xc]
movzx eax, bp
cmp ecx, eax
jne 0x49b806
mov eax, dword [edi + 0x10]
test eax, eax
je 0x49b81b
lea ecx, [esi + 0xd8]
inc ebx
call fcn.0049c670
cmp ebx, eax
jl 0x49b7e0
jmp case.0x49b896.308
mov edx, dword [edi]
mov eax, dword [edi + 4]
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x10], 0x18
mov dword [esp + 0x14], edx
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi]
mov dword [esp + 0x18], eax
mov edx, dword [ecx]
lea eax, [esp + 0x10]
push eax
call dword [edx + 0xf8]
jmp case.0x49b896.308
cmp edi, 0x204
ja 0x49bd68
je 0x49bc89
lea eax, [edi - 0x133]
cmp eax, 0xd0
ja case.0x49b896.308
movzx ecx, byte [eax + 0x49c368]
jmp dword [ecx*4 + 0x49c350]
mov eax, dword [esi + 0xc4]
test eax, eax
jne 0x49b905
mov eax, dword [esi]
xor edx, edx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], edx
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0x18]
test eax, eax
mov dword [esp + 0x4c], edx
mov dword [esp + 0x40], 0x10
mov dword [esp + 0x44], 3
jne 0x49b8dc
mov dword [esp + 0x4c], 0x3e8
jmp 0x49b8f0
push 0
push 3
push 0x415
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x4c], eax
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.COMCTL32.dll__TrackMouseEvent]
mov dword [esi + 0xc4], 1
mov ecx, dword [esi + 0x50]
movsx ebp, bx
shr ebx, 0x10
movsx ebx, bx
push 0xd
lea eax, [esp + 0x34]
push eax
mov dword [esi + 0x64], ebp
mov dword [esi + 0x68], ebx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebx
mov edx, dword [ecx]
push 0x499310
call dword [edx + 0xec]
mov edi, eax
test edi, edi
je 0x49b948
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x1c]
cmp eax, esi
jne case.0x49b896.308
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x58]
cmp edi, ecx
mov dword [esp + 0x18], eax
je 0x49b9c4
test ecx, ecx
je 0x49b9c4
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0xa
mov dword [esp + 0x14], ecx
mov edx, dword [ecx]
push eax
call dword [edx + 0xf8]
mov eax, dword [esi + 0x18]
test eax, eax
mov dword [esi + 0x58], 0
je 0x49b9c4
lea ecx, [esi + 0x1c]
push ecx
push 0
push 0x411
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp edi, dword [esi + 0x58]
je 0x49b9eb
test edi, edi
je 0x49b9eb
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0xb
mov dword [esp + 0x14], edi
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0xf8]
mov dword [esi + 0x58], edi
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x49ba10
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 9
mov dword [esp + 0x14], ecx
mov edx, dword [ecx]
push eax
call dword [edx + 0xf8]
jmp case.0x49b896.308
test edi, edi
je case.0x49b896.308
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 9
mov dword [esp + 0x14], edi
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0xf8]
jmp case.0x49b896.308
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov edx, ebx
shr edx, 0x10
movsx ecx, dx
movsx eax, bx
push 0xd
mov dword [esi + 0x68], ecx
mov dword [esp + 0x58], ecx
lea edx, [esp + 0x54]
mov dword [esp + 0x38], ecx
mov ecx, dword [esi + 0x50]
push edx
mov dword [esp + 0x38], eax
mov dword [esi + 0x64], eax
mov dword [esp + 0x58], eax
mov eax, dword [ecx]
push 0x499310
call dword [eax + 0xec]
mov edi, eax
test edi, edi
je case.0x49b896.308
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x1c]
cmp eax, esi
jne case.0x49b896.308
mov dword [esi + 0x5c], edi
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0xe0]
mov ecx, esi
call fcn.00498db0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], 0xd
mov dword [esp + 0x14], edi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov word [esp + 0x26], bp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0xf8]
jmp case.0x49b896.308
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [esi + 0x50]
movsx edi, bx
shr ebx, 0x10
movsx eax, bx
push 0xd
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x5c], eax
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], eax
mov eax, dword [ecx]
push 0x499310
call dword [eax + 0xec]
mov ebx, eax
test ebx, ebx
je case.0x49b896.308
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
cmp eax, esi
jne case.0x49b896.308
mov ecx, esi
call fcn.00498db0
mov edx, dword [esp + 0x54]
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x10], 0x10
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edx
mov word [esp + 0x26], bp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0xf8]
mov dword [esi + 0x5c], ebx
jmp case.0x49b896.308
mov edx, ebx
shr edx, 0x10
movsx eax, dx
movsx edi, bx
mov dword [esp + 0x44], eax
mov dword [esi + 0x68], eax
mov eax, dword [esi + 0x5c]
test eax, eax
mov dword [esi + 0x64], edi
je case.0x49b896.308
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov ecx, dword [esi + 0x5c]
mov edx, dword [esp + 0x44]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esi + 0xc8], 0
mov dword [esp + 0x10], 0xe
mov dword [esp + 0x14], ecx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edx
mov word [esp + 0x26], bp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x5c]
lea edx, [esp + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0xf8]
mov dword [esi + 0x5c], 0
jmp case.0x49b896.308
test ebx, ebx
je case.0x49b896.308
push ebx
push ebp
add edi, 0x2000
push edi
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x18c]
mov dword [ecx], eax
mov eax, 1
jmp 0x49c23b
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
movsx eax, bx
mov ecx, ebx
shr ecx, 0x10
movsx ecx, cx
mov dword [esi + 0x64], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x30], eax
push 0xd
mov dword [esi + 0x68], ecx
mov dword [esp + 0x58], ecx
lea eax, [esp + 0x54]
mov dword [esp + 0x38], ecx
mov ecx, dword [esi + 0x50]
mov edx, dword [ecx]
push eax
push 0x499310
call dword [edx + 0xec]
mov edi, eax
test edi, edi
je case.0x49b896.308
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x1c]
cmp eax, esi
jne case.0x49b896.308
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xe0]
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_SetCapture]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
xor edx, edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edx
mov dword [esi + 0xc8], 1
mov dword [esp + 0x10], 0xf
mov dword [esp + 0x14], edi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov word [esp + 0x26], bp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x18], eax
mov edx, dword [edi]
lea eax, [esp + 0x10]
push eax
mov ecx, edi
call dword [edx + 0xf8]
mov dword [esi + 0x5c], edi
jmp case.0x49b896.308
cmp edi, 0x2a3
ja 0x49c082
je 0x49c040
cmp edi, 0x20a
je 0x49bf53
cmp edi, 0x2a1
jne case.0x49b896.308
mov ecx, dword [esi + 0x50]
movsx edi, bx
shr ebx, 0x10
push 0xd
movsx ebx, bx
lea eax, [esp + 0x34]
push eax
mov dword [esi + 0xc4], 0
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], ebx
mov edx, dword [ecx]
push 0x499310
call dword [edx + 0xec]
mov ebp, eax
test ebp, ebp
je case.0x49b896.308
mov eax, dword [esi + 0x58]
test eax, eax
je 0x49be21
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x10], 0xc
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x58]
mov dword [esp + 0x18], eax
mov edx, dword [ecx]
lea eax, [esp + 0x10]
push eax
call dword [edx + 0xf8]
mov edx, dword [ebp]
lea eax, [esp + 0xe4]
push eax
mov ecx, ebp
call dword [edx + 0x98]
mov edx, dword [esp + 0xe4]
cmp word [edx], 0
mov dword [esp + 0x178], 0
jne 0x49be6e
lea ecx, [esp + 0xe8]
cmp edx, ecx
je 0x49bc7f
push edx
call fcn.00482838
add esp, 4
mov eax, 1
jmp 0x49c23b
lea ebx, [esi + 0x1c]
xor eax, eax
mov ecx, 0xc
mov edi, ebx
rep stosd dword es:[edi], eax
mov eax, dword [esi]
mov dword [ebx], 0x30
mov dword [esi + 0x20], 1
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov eax, dword [0x51bf98]
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edx
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x30]
mov edx, dword [eax]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [esi + 0x2c]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x49bf0e
mov ecx, dword [0x51bf98]
mov edx, dword [esi]
push 0
push ecx
push 0
push edx
push Ordinal_2
push Ordinal_2
push Ordinal_2
push Ordinal_2
push reloc.WSOCK32.dll_closesocket
push 0
push 0x4f9428
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push ebx
push 0
push 0x432
push eax
mov dword [esi + 0x18], eax
call edi
mov eax, dword [esi + 0x18]
push ebx
push 0
push 0x436
push eax
call edi
mov ecx, dword [esi + 0x18]
push ebx
push 1
push 0x411
push ecx
call edi
mov eax, dword [esp + 0xe4]
lea edx, [esp + 0xe8]
cmp eax, edx
je 0x49bc7f
push eax
call fcn.00482838
add esp, 4
mov eax, 1
jmp 0x49c23b
movsx eax, bx
mov ecx, ebx
shr ecx, 0x10
mov dword [esp + 0x30], eax
movsx edx, cx
mov ecx, dword [esi]
lea eax, [esp + 0x30]
push eax
push ecx
mov dword [esp + 0x3c], edx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov dword [esi + 0x64], eax
mov dword [esp + 0x50], eax
push 0xd
mov dword [esi + 0x68], ecx
mov dword [esp + 0x58], ecx
mov ecx, dword [esi + 0x50]
mov edx, dword [ecx]
lea eax, [esp + 0x54]
push eax
push 0x499310
call dword [edx + 0xec]
mov edi, eax
test edi, edi
je case.0x49b896.308
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x1c]
cmp eax, esi
jne case.0x49b896.308
xor eax, eax
mov dword [esp + 0x14], eax
xor ecx, ecx
shr ebp, 0x10
mov dword [esp + 0x18], eax
test bp, bp
setl cl
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], 0x12
movzx edx, cx
mov dword [esp + 0x14], edi
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ebx
call fcn.00498700
mov word [esp + 0x26], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0xf8]
movzx edx, word [esi + 0x68]
movzx eax, word [esi + 0x64]
mov ecx, dword [esi]
shl edx, 0x10
or edx, eax
push edx
push 0
push 0x200
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp case.0x49b896.308
mov eax, dword [esi + 0x18]
test eax, eax
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
je 0x49c05b
lea edx, [esi + 0x1c]
push edx
push 0
push 0x411
push eax
call edi
mov eax, dword [esi + 0xc4]
test eax, eax
je 0x49c073
mov eax, dword [esi]
push 0xffffffffffffffff
push 0
push 0x200
push eax
call edi
mov dword [esi + 0xc4], 0
jmp case.0x49b896.308
cmp edi, 0x318
je 0x49c0dc
cmp edi, 0x8001
jne case.0x49b896.308
lea edi, [esi + 0x108]
mov ecx, edi
xor ebx, ebx
call fcn.0049c670
test eax, eax
jle 0x49c0d0
lea esp, [esp]
push ebx
mov ecx, edi
call fcn.00497a10
test eax, eax
je 0x49c0c4
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
mov ecx, edi
inc ebx
call fcn.0049c670
cmp ebx, eax
jl 0x49c0b0
mov ecx, edi
call fcn.004977a0
jmp case.0x49b896.308
mov ecx, dword [esi]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push ebp
call dword [sym.imp.GDI32.dll_SaveDC]
mov ecx, dword [esi + 0x50]
mov edx, dword [ecx]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x10]
push eax
push ebp
call dword [edx + 0x108]
test bl, 0x10
je 0x49c18b
mov ecx, dword [esi]
push 5
push ecx
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
test edi, edi
je 0x49c18b
or ebx, 2
xor edx, edx
lea eax, [esp + 0x40]
mov dword [esp + 0x44], edx
push eax
mov dword [esp + 0x4c], edx
push edi
mov dword [esp + 0x48], 0
mov dword [esp + 0x54], edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push 2
lea ecx, [esp + 0x44]
push ecx
push edx
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
push 0
neg eax
push eax
neg ecx
push ecx
push ebp
call dword [sym.imp.GDI32.dll_SetWindowOrgEx]
push ebx
push ebp
push 0x317
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
push 2
push edi
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
test edi, edi
jne 0x49c123
mov edx, dword [esp + 0x30]
push edx
push ebp
call dword [sym.imp.GDI32.dll_RestoreDC]
mov edi, dword [esp + 0x60]
push 0
mov ecx, edi
call fcn.004979f0
mov ebx, eax
test ebx, ebx
je 0x49c239
add esi, 0xcc
push 0
mov ecx, edi
call fcn.00497970
mov eax, dword [ebx + 0x88]
test eax, eax
je 0x49c1e2
lea ecx, [eax + 0x34]
call fcn.0049c700
test eax, eax
je 0x49c1e2
mov ecx, dword [ebx + 0x88]
push ebx
add ecx, 0x34
call fcn.0049c770
mov ecx, esi
xor ebp, ebp
call fcn.0049c670
test eax, eax
jle 0x49c20b
nop
push ebp
mov ecx, esi
call fcn.00497a10
mov edx, dword [eax]
push ebx
mov ecx, eax
call dword [edx]
mov ecx, esi
inc ebp
call fcn.0049c670
cmp ebp, eax
jl 0x49c1f0
mov eax, dword [ebx]
lea ecx, [ebx + 4]
cmp eax, ecx
je 0x49c21d
push eax
call fcn.00482838
add esp, 4
push ebx
call fcn.004cabc1
add esp, 4
push 0
mov ecx, edi
call fcn.004979f0
mov ebx, eax
test ebx, ebx
jne 0x49c1b4
xor eax, eax
mov ecx, dword [esp + 0x170]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x16c]
call fcn.00482423
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x16c
ret 0x10