Function at 0x402337
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x73d3eb
mov eax, dword fs:[0]
push eax
sub esp, 0x1b0
mov eax, dword [0x80100c]
xor eax, esp
mov dword [esp + 0x1a8], eax
push ebx
push esi
push edi
mov eax, dword [0x80100c]
xor eax, esp
push eax
lea eax, [esp + 0x1c0]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
mov esi, edx
mov dword [esp + 0x44], ecx
je 0x4039f6
jmp 0x402110
cmp dword [ebx + 0x1f8], 0
jle 0x4021f0
mov edx, dword [ebx + 0x1f4]
mov ecx, dword [edx]
mov dword [esp + 0x30], ecx
test ecx, ecx
je 0x4021f0
mov eax, dword [ebx + 0x1f8]
test eax, eax
jle 0x402162
dec eax
mov dword [ebx + 0x1f8], eax
test eax, eax
jle 0x402162
mov ecx, dword [ebx + 0x1f4]
add eax, eax
add eax, eax
push eax
lea edx, [ecx + 4]
push edx
push ecx
call fcn.005645b0
mov ecx, dword [esp + 0x3c]
add esp, 0xc
mov eax, dword [ecx + 0x108]
test eax, eax
je 0x40217f
cmp dword [eax + 0x38], 0
jle 0x40217f
mov ecx, dword [esp + 0x30]
push ecx
lea edi, [eax + 0x34]
call fcn.00417220
xor edi, edi
cmp dword [ebx + 0x1b0], edi
jle 0x4021ad
lea esp, [esp]
mov edx, dword [ebx + 0x1ac]
mov ecx, dword [edx + edi*4]
mov eax, dword [ecx]
mov edx, dword [esp + 0x30]
mov eax, dword [eax]
push edx
call eax
inc edi
cmp edi, dword [ebx + 0x1b0]
jl 0x402190
mov edi, dword [esp + 0x30]
mov eax, dword [edi + 0x84]
lea ecx, [edi + 0x88]
cmp eax, ecx
je 0x4021ca
push eax
call fcn.005654ab
add esp, 4
mov eax, dword [edi]
lea edx, [edi + 4]
cmp eax, edx
je 0x4021dc
push eax
call fcn.005654ab
add esp, 4
push edi
call fcn.00563182
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
add esp, 4
jmp 0x402110
cmp dword [ebx + 0x1d4], 0
mov dword [esp + 0x30], 0
jle 0x402243
mov eax, dword [ebx + 0x1d0]
mov ecx, dword [esp + 0x30]
mov byte [esp + 0x3f], 0
mov ecx, dword [eax + ecx*4]
mov edx, dword [ecx]
mov edx, dword [edx]
lea eax, [esp + 0x3f]
push eax
mov eax, dword [ebp + 0xc]
push esi
push edi
push eax
call edx
cmp byte [esp + 0x3f], 0
jne 0x402eae
mov eax, dword [esp + 0x30]
inc eax
cmp eax, dword [ebx + 0x1d4]
mov dword [esp + 0x30], eax
jl 0x402201
mov eax, dword [ebp + 0xc]
cmp eax, 0x111
ja 0x402ede
je 0x402ebb
add eax, 0xfffffffb
cmp eax, 0xfd
ja case.0x402f06.276
movzx edx, byte [eax + 0x403a50]
jmp dword [edx*4 + 0x403a20]
mov ecx, dword [ebx + 0x15c]
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x158]
mov dword [esp + 0x10], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x14c]
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x4022d9
mov dword [esp + 0x10], 0xa
mov dword [esp + 0x14], ecx
mov edx, dword [ecx]
mov edx, dword [edx + 0x108]
lea eax, [esp + 0x10]
push eax
call edx
mov ecx, dword [ebx + 0x150]
test ecx, ecx
je 0x4022fe
mov dword [esp + 0x10], 0xe
mov dword [esp + 0x14], ecx
mov eax, dword [ecx]
mov eax, dword [eax + 0x108]
lea edx, [esp + 0x10]
push edx
call eax
xor esi, esi
mov eax, ebx
call fcn.004040f0
mov ecx, dword [ebx]
push 4
push ecx
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je case.0x402f06.276
push eax
call dword [sym.imp.USER32.dll_SetFocus]
jmp case.0x402f06.276
mov edx, dword [esp + 0x44]
mov dword [edx], 1
mov al, 1
jmp 0x4039f8
mov ecx, dword [ebx]
xor eax, eax
xor edi, edi
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
push edi
lea eax, [esp + 0x88]
push eax
push ecx
mov dword [esp + 0x90], edi
call dword [sym.imp.USER32.dll_GetUpdateRect]
test eax, eax
je 0x403731
push 0x3c
push edi
cmp dword [ebx + 0x144], edi
jne 0x4023bc
lea edx, [esp + 0xb8]
push edx
mov dword [esp + 0xb8], edi
call fcn.00563860
mov ecx, dword [ebx]
add esp, 0xc
lea eax, [esp + 0xac]
push eax
push ecx
call dword [sym.imp.USER32.dll_BeginPaint]
mov eax, dword [ebx]
lea edx, [esp + 0xac]
push edx
push eax
call dword [sym.imp.USER32.dll_EndPaint]
mov al, 1
jmp 0x4039f8
lea ecx, [esp + 0xf8]
push ecx
mov dword [esp + 0xf8], edi
call fcn.00563860
mov eax, dword [ebx]
add esp, 0xc
lea edx, [esp + 0xec]
push edx
push eax
call dword [sym.imp.USER32.dll_BeginPaint]
cmp byte [ebx + 0x1a5], 0
je 0x402544
mov edx, dword [ebx]
lea ecx, [esp + 0x54]
xor eax, eax
push ecx
push edx
mov byte [ebx + 0x1a5], 0
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x402544
mov ecx, dword [ebx + 0x144]
cmp byte [ecx + 0x150], al
je 0x40249a
mov ecx, dword [ebx]
push ecx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x402473
mov esi, dword [esp + 0x54]
mov ecx, dword [ebx + 0x144]
mov edx, dword [ecx]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [esp + 0x68]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x6c]
mov dword [eax + 8], esi
mov esi, dword [esp + 0x70]
mov dword [eax + 0xc], esi
mov eax, dword [edx + 0x34]
call eax
mov eax, dword [ebx + 0xc]
cmp eax, edi
je 0x402481
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [ebx + 0x10]
cmp eax, edi
je 0x40248f
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [ebx + 0xc], edi
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x14], edi
jmp 0x402502
mov edx, dword [ecx]
mov eax, dword [edx + 0xfc]
push reloc.WS2_32.dll_accept
push edi
push 0x405950
call eax
mov esi, eax
cmp esi, edi
je 0x402502
mov edi, dword [esi]
mov edx, dword [edi + 0x30]
mov ecx, esi
call edx
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 edx, dword [edi + 0x34]
mov dword [ecx + 0xc], eax
mov ecx, esi
call edx
mov ecx, dword [ebx + 0x144]
mov eax, dword [ecx]
mov edx, dword [eax + 0xfc]
push reloc.WS2_32.dll_accept
push 0
push 0x405950
call edx
mov esi, eax
test esi, esi
jne 0x4024b5
cmp byte [ebx + 0x1a4], 0
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov dword [ebx + 0x1c], eax
mov eax, dword [esp + 0x60]
mov dword [ebx + 0x20], ecx
mov dword [ebx + 0x24], edx
mov dword [ebx + 0x28], eax
je 0x402544
mov ecx, dword [ebx + 0x144]
push 0
push 0
push 0x7c2000
mov edi, ebx
mov byte [ebx + 0x1a4], 0
call fcn.00404af0
cmp byte [ebx + 0x1a6], 0
je 0x402602
cmp byte [ebx + 0x1a5], 0
je 0x402573
mov ecx, dword [ebx]
push 0
push 0
push ecx
mov byte [ebx + 0x1a6], 1
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x402602
mov edx, dword [ebx + 0x148]
mov ecx, dword [ebx + 0x144]
xor eax, eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x48], edx
push reloc.WS2_32.dll_closesocket
mov dword [esp + 0x50], eax
lea edx, [esp + 0x4c]
mov byte [esp + 0x54], 1
mov eax, dword [ecx]
mov eax, dword [eax + 0xfc]
push edx
push 0x405870
call eax
test eax, eax
jne 0x4025f2
mov ecx, dword [ebx + 0x144]
mov dword [esp + 0x9c], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x94], eax
push reloc.WS2_32.dll_closesocket
lea eax, [esp + 0x98]
mov byte [esp + 0xa0], 1
mov edx, dword [ecx]
mov edx, dword [edx + 0xfc]
push eax
push 0x405870
call edx
test eax, eax
je 0x4025fb
mov esi, eax
mov eax, ebx
call fcn.004040f0
mov byte [ebx + 0x1a6], 0
cmp byte [ebx + 0x18], 0
je 0x40294c
mov eax, dword [ebx]
push 0xffffffffffffffec
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x80000
jne 0x40262f
mov ecx, dword [ebx]
or eax, 0x80000
push eax
push 0xffffffffffffffec
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongW]
xor eax, eax
lea edx, [esp + 0x54]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov eax, dword [ebx]
push edx
push eax
mov dword [esp + 0x5c], 0
call dword [sym.imp.USER32.dll_GetClientRect]
cmp byte [ebx + 0x3c], 0
je 0x40268b
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x60]
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], eax
mov byte [ebx + 0x3c], 0
jmp 0x4026b5
lea esi, [ebx + 0x1c]
push esi
lea eax, [esp + 0x88]
push eax
mov ecx, eax
push ecx
call dword [sym.imp.USER32.dll_UnionRect]
mov ecx, dword [esp + 0x5c]
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x60]
sub ecx, dword [esp + 0x54]
sub eax, dword [esp + 0x58]
cmp dword [ebx + 0x10], 0
mov esi, ecx
mov dword [esp + 0x30], esi
mov edi, eax
jne 0x4026ed
mov edx, dword [ebx + 8]
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [ebx + 8]
mov dword [ebx + 0xc], eax
lea eax, [ebx + 0x14]
push eax
push ecx
mov eax, esi
call fcn.0040f4a0
add esp, 8
mov dword [ebx + 0x10], eax
mov edx, dword [ebx + 0x10]
mov eax, dword [ebx + 0xc]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebx + 0xc]
push ecx
mov dword [esp + 0x38], eax
call dword [sym.imp.GDI32.dll_SaveDC]
mov esi, dword [esp + 0x88]
cmp esi, dword [esp + 0x90]
mov dword [esp + 0xa0], eax
mov edi, esi
jge 0x402766
imul esi, dword [esp + 0x30]
jmp 0x402730
mov eax, dword [esp + 0x84]
mov edx, dword [esp + 0x8c]
mov ecx, dword [ebx + 0x14]
sub edx, eax
add edx, edx
add edx, edx
push edx
add eax, esi
lea edx, [ecx + eax*4]
push 0
push edx
call fcn.00563860
add esi, dword [esp + 0x3c]
inc edi
add esp, 0xc
cmp edi, dword [esp + 0x90]
jl 0x402730
mov ecx, dword [ebx + 0x144]
mov eax, dword [ecx]
mov eax, dword [eax + 0x118]
lea edx, [esp + 0x84]
push edx
mov edx, dword [ebx + 0xc]
push edx
call eax
mov edx, dword [ebx + 0xc]
lea ecx, [esp + 0x84]
push ecx
push edx
mov eax, ebx
call fcn.00401df0
xor esi, esi
cmp dword [ebx + 0x1e0], esi
jle 0x4027c8
nop
mov eax, dword [ebx + 0x1dc]
mov ecx, dword [eax + esi*4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x130]
lea eax, [esp + 0xf4]
push eax
mov eax, dword [ebx + 0xc]
push eax
call edx
inc esi
cmp esi, dword [ebx + 0x1e0]
jl 0x4027a0
mov edi, dword [ebx + 0x2c]
test edi, edi
jg 0x4027e5
cmp dword [ebx + 0x30], 0
jg 0x4027e5
cmp dword [ebx + 0x34], 0
jg 0x4027e5
cmp dword [ebx + 0x38], 0
jle 0x40288d
mov eax, dword [esp + 0x58]
add eax, dword [ebx + 0x30]
mov ecx, dword [esp + 0x5c]
sub ecx, dword [ebx + 0x34]
mov edx, dword [esp + 0x60]
sub edx, dword [ebx + 0x38]
mov esi, dword [esp + 0x54]
mov dword [esp + 0x78], eax
lea eax, [esp + 0x84]
mov dword [esp + 0x7c], ecx
push eax
lea ecx, [esp + 0x78]
mov dword [esp + 0x78], esi
mov dword [esp + 0x84], edx
push ecx
mov edx, ecx
add esi, edi
push edx
mov dword [esp + 0x80], esi
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x40288d
mov eax, dword [esp + 0x78]
cmp eax, dword [esp + 0x80]
mov dword [esp + 0x40], eax
jge 0x40288d
mov edi, dword [esp + 0x30]
mov edx, dword [esp + 0x7c]
imul eax, edi
mov esi, eax
mov eax, dword [esp + 0x74]
cmp eax, edx
mov ecx, eax
jge 0x40287a
add eax, esi
add eax, eax
add eax, eax
mov edx, dword [ebx + 0x14]
mov byte [edx + eax + 3], 0xff
mov edx, dword [esp + 0x7c]
inc ecx
add eax, 4
cmp ecx, edx
jl 0x402862
mov eax, dword [esp + 0x74]
inc dword [esp + 0x40]
mov ecx, dword [esp + 0x80]
add esi, edi
cmp dword [esp + 0x40], ecx
jl 0x402856
mov edx, dword [esp + 0xa0]
mov eax, dword [ebx + 0xc]
push edx
push eax
call dword [sym.imp.GDI32.dll_RestoreDC]
mov edx, dword [ebx]
lea ecx, [esp + 0x10]
xor eax, eax
push ecx
xor esi, esi
push edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
sub edx, eax
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x1c]
push 2
sub eax, ecx
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0x48]
push ecx
push esi
mov dword [esp + 0xa0], edx
mov dword [esp + 0xa4], eax
mov eax, dword [ebx + 0xc]
lea edx, [esp + 0xb0]
push edx
push eax
mov eax, dword [ebx]
lea ecx, [esp + 0xa8]
push ecx
lea edx, [esp + 0x60]
push edx
push esi
push eax
mov dword [esp + 0xc8], esi
mov dword [esp + 0xcc], esi
mov byte [esp + 0x68], 0
mov byte [esp + 0x69], 0
mov byte [esp + 0x6a], 0xff
mov byte [esp + 0x6b], 1
call dword [sym.imp.USER32.dll_UpdateLayeredWindow]
mov ecx, dword [esp + 0x34]
mov edx, dword [ebx + 0xc]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
jmp 0x402a74
xor esi, esi
cmp dword [ebx + 0x10], esi
jne 0x40299f
mov ecx, dword [ebx]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x18], esi
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [ebx + 8]
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0x18]
sub ecx, dword [esp + 0x10]
mov edx, dword [ebx + 8]
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x14]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebx + 0x10], eax
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0xc]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ecx
call edi
mov edx, dword [ebx + 0xc]
push edx
mov dword [esp + 0xa4], eax
call dword [sym.imp.GDI32.dll_SaveDC]
mov ecx, dword [ebx + 0x144]
lea edx, [esp + 0xf4]
mov dword [esp + 0x34], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x118]
push edx
mov edx, dword [ebx + 0xc]
push edx
call eax
cmp dword [ebx + 0x1e0], esi
jle 0x402a18
jmp 0x4029f0
mov ecx, dword [ebx + 0x1dc]
mov ecx, dword [ecx + esi*4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x130]
lea eax, [esp + 0xf4]
push eax
mov eax, dword [ebx + 0xc]
push eax
call edx
inc esi
cmp esi, dword [ebx + 0x1e0]
jl 0x4029f0
mov eax, dword [esp + 0x34]
mov ecx, dword [ebx + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_RestoreDC]
mov eax, dword [esp + 0xf8]
mov ecx, dword [esp + 0xf4]
mov edx, dword [ebx + 0xc]
push 0xcc0020
push eax
push ecx
push edx
mov edx, dword [esp + 0x110]
sub edx, eax
push edx
mov edx, dword [esp + 0x110]
sub edx, ecx
push edx
push eax
mov eax, dword [esp + 0x108]
push ecx
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0xa0]
mov edx, dword [ebx + 0xc]
push ecx
push edx
call edi
xor esi, esi
mov ecx, dword [ebx]
lea eax, [esp + 0xec]
push eax
push ecx
call dword [sym.imp.USER32.dll_EndPaint]
cmp byte [ebx + 0x1a5], 0
je 0x402a99
mov edx, dword [ebx]
push esi
push esi
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov al, 1
jmp 0x4039f8
mov eax, dword [ebx + 0x160]
test eax, eax
jle 0x402aad
mov dword [esi + 0x18], eax
mov eax, dword [ebx + 0x164]
test eax, eax
jle 0x402aba
mov dword [esi + 0x1c], eax
mov eax, dword [ebx + 0x168]
test eax, eax
jle 0x402ac7
mov dword [esi + 0x20], eax
mov eax, dword [ebx + 0x16c]
test eax, eax
jle case.0x402f06.276
mov dword [esi + 0x24], eax
jmp case.0x402f06.276
mov ecx, dword [ebx + 0x148]
test ecx, ecx
je 0x402b30
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], 0x16
mov dword [esp + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x148]
mov dword [esp + 0x18], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x108]
lea edx, [esp + 0x10]
push edx
call eax
mov ebx, dword [ebx + 0x144]
test ebx, ebx
je 0x402b41
mov eax, ebx
call fcn.0040cd20
mov al, 1
jmp 0x4039f8
movsx ecx, si
shr esi, 0x10
lea eax, [esp + 0x34]
mov dword [esp + 0x34], ecx
mov ecx, dword [ebx]
movsx edx, si
push eax
push ecx
mov dword [esp + 0x40], edx
call dword [sym.imp.USER32.dll_ScreenToClient]
cmp dword [ebx + 0x150], 0
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov dword [ebx + 0x158], edx
mov dword [ebx + 0x15c], eax
je case.0x402f06.276
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x150]
mov byte [ebx + 0x1a8], 0
mov dword [esp + 0x10], 0x11
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov word [esp + 0x26], di
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x150]
mov dword [esp + 0x18], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x108]
lea edx, [esp + 0x10]
push edx
call eax
mov dword [ebx + 0x150], 0
jmp case.0x402f06.276
cmp dword [ebx + 0x148], 0
je case.0x402f06.276
mov ecx, dword [ebx + 0x158]
mov edx, dword [ebx + 0x15c]
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], 5
mov word [esp + 0x24], di
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
call section..text
mov word [esp + 0x26], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x148]
mov dword [esp + 0x18], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x108]
lea edx, [esp + 0x10]
push edx
call eax
jmp case.0x402f06.276
cmp dword [ebx + 0x148], 0
je case.0x402f06.276
mov ecx, dword [ebx + 0x158]
mov edx, dword [ebx + 0x15c]
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], 3
mov word [esp + 0x24], di
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
call section..text
mov word [esp + 0x26], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x148]
mov dword [esp + 0x18], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x108]
lea edx, [esp + 0x10]
push edx
call eax
mov ecx, dword [ebx + 0x148]
mov dword [ebx + 0x154], ecx
jmp case.0x402f06.276
cmp dword [ebx + 0x154], 0
je case.0x402f06.276
mov edx, dword [ebx + 0x158]
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x15c]
mov dword [esp + 0x10], 4
mov word [esp + 0x24], di
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
call section..text
mov word [esp + 0x26], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x154]
mov dword [esp + 0x18], eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x108]
lea eax, [esp + 0x10]
push eax
call edx
mov dword [ebx + 0x154], 0
jmp case.0x402f06.276
cmp si, 1
jne case.0x402f06.276
cmp byte [ebx + 0x1a8], 0
jne 0x403731
xor eax, eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [ebx]
lea ecx, [esp + 0x74]
push ecx
push edx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
push eax
push ecx
mov eax, ebx
call fcn.00405740
mov dword [esp + 0x40], eax
test eax, eax
je case.0x402f06.276
mov ecx, eax
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
test al, 2
je case.0x402f06.276
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x78]
xor eax, eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0xc0], eax
mov dword [esp + 0xac], 0x17
mov dword [esp + 0xc4], edi
mov dword [esp + 0xc8], esi
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xbc], edx
call section..text
mov word [esp + 0xc2], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0xb4], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x108]
lea edx, [esp + 0xac]
push edx
call eax
mov al, 1
jmp 0x4039f8
test esi, esi
je 0x403731
mov ecx, dword [ebp + 0xc]
mov edx, dword [esi]
push esi
push edi
add ecx, 0x2000
push ecx
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x44]
mov dword [ecx], eax
mov al, 1
jmp 0x4039f8
test esi, esi
je case.0x402f06.276
push esi
push edi
push 0x2111
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esp + 0x44]
mov dword [edx], eax
mov al, 1
jmp 0x4039f8
cmp eax, 0x2a1
ja 0x403852
je 0x40364a
add eax, 0xfffffeee
cmp eax, 0xf8
ja case.0x402f06.276
movzx eax, byte [eax + 0x403b78]
jmp dword [eax*4 + 0x403b50]
and edi, 0xfff0
cmp edi, 0xf120
jne 0x402f1f
mov byte [ebx + 0x3c], 1
mov al, 1
jmp 0x4039f8
mov ecx, 0xf1
cmp cx, di
jne 0x402f52
lea esi, [ebx + 0xf8]
mov edi, ebx
call fcn.00403c80
cmp byte [ebx + 0x108], 0
sete dl
mov byte [ebx + 0x108], dl
jmp case.0x402f06.276
xor ecx, ecx
cmp dword [ebx + 0x1bc], ecx
jle case.0x402f06.276
mov eax, dword [ebx + 0x1b8]
mov esi, dword [eax]
mov edx, dword [ebx]
cmp dword [esi + 8], edx
jne 0x402f7d
movzx edx, di
cmp dword [esi + 0xc], edx
jne 0x402f7d
cmp byte [esi + 0x10], 0
je 0x402f8e
inc ecx
add eax, 4
cmp ecx, dword [ebx + 0x1bc]
jl 0x402f66
jmp case.0x402f06.276
mov ecx, dword [esi + 4]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esi]
mov dword [esp + 0x10], 0x18
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi]
mov dword [esp + 0x18], eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x108]
lea eax, [esp + 0x10]
push eax
call edx
jmp case.0x402f06.276
cmp byte [ebx + 0x1a7], 0
jne 0x403048
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, dword [ebx]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x110]
mov dword [esp + 0x10], 0x10
mov dword [esp + 0x14], 3
test eax, eax
jne 0x403022
mov dword [esp + 0x1c], 0x190
jmp 0x403036
push 0
push 3
push 0x415
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.COMCTL32.dll__TrackMouseEvent]
mov byte [ebx + 0x1a7], 1
mov ecx, dword [ebx + 0x144]
movsx edi, si
shr esi, 0x10
movsx eax, si
mov dword [ebx + 0x15c], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x98], eax
push 0xd
lea eax, [esp + 0x4c]
mov dword [ebx + 0x158], edi
mov dword [esp + 0x4c], edi
mov edx, dword [ecx]
mov edx, dword [edx + 0xfc]
push eax
push 0x405840
call edx
mov esi, eax
test esi, esi
je 0x40309f
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
mov ecx, esi
call edx
cmp eax, ebx
jne case.0x402f06.276
xor eax, eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x14c]
mov dword [esp + 0x5c], eax
cmp esi, ecx
je 0x40312c
test ecx, ecx
je 0x40312c
mov dword [esp + 0x54], 0xa
mov dword [esp + 0x58], ecx
mov edx, dword [ecx]
mov edx, dword [edx + 0x108]
lea eax, [esp + 0x54]
push eax
call edx
mov eax, dword [ebx + 0x110]
mov dword [ebx + 0x14c], 0
test eax, eax
je 0x40312c
lea ecx, [ebx + 0x114]
push ecx
push 0
push 0x411
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp esi, dword [ebx + 0x14c]
je 0x40315b
test esi, esi
je 0x40315b
mov dword [esp + 0x54], 0xb
mov dword [esp + 0x58], esi
mov edx, dword [esi]
mov edx, dword [edx + 0x108]
lea eax, [esp + 0x54]
push eax
mov ecx, esi
call edx
mov dword [ebx + 0x14c], esi
mov ecx, dword [ebx + 0x150]
test ecx, ecx
je 0x403185
mov dword [esp + 0x54], 9
mov dword [esp + 0x58], ecx
mov eax, dword [ecx]
mov eax, dword [eax + 0x108]
lea edx, [esp + 0x54]
push edx
call eax
jmp case.0x402f06.276
test esi, esi
je case.0x402f06.276
mov dword [esp + 0x54], 9
mov dword [esp + 0x58], esi
mov edx, dword [esi]
mov edx, dword [edx + 0x108]
lea eax, [esp + 0x54]
push eax
mov ecx, esi
call edx
jmp case.0x402f06.276
mov eax, dword [ebx]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, esi
shr ecx, 0x10
movsx ecx, cx
movsx eax, si
mov dword [ebx + 0x158], eax
mov dword [ebx + 0x15c], ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
mov ecx, dword [ebx + 0x144]
mov edx, dword [ecx]
mov edx, dword [edx + 0xfc]
push 0xd
lea eax, [esp + 0x4c]
push eax
push 0x405840
call edx
mov edi, eax
test edi, edi
je case.0x402f06.276
mov eax, dword [edi]
mov edx, dword [eax + 0x1c]
mov ecx, edi
call edx
cmp eax, ebx
jne case.0x402f06.276
mov dword [ebx + 0x150], edi
mov eax, dword [edi]
mov edx, dword [eax + 0xf0]
mov ecx, edi
call edx
mov eax, dword [ebx]
push eax
call dword [sym.imp.USER32.dll_SetCapture]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
xor eax, eax
mov dword [esp + 0x14], 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 + 0x18], eax
mov eax, dword [ebp + 0x10]
mov byte [ebx + 0x1a8], 1
mov dword [esp + 0x10], 0xd
mov dword [esp + 0x14], edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov word [esp + 0x26], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x18], eax
mov eax, dword [edi]
mov edx, dword [eax + 0x108]
lea ecx, [esp + 0x10]
push ecx
mov ecx, edi
call edx
jmp case.0x402f06.276
mov eax, dword [ebx]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
movsx eax, si
shr esi, 0x10
movsx ecx, si
mov dword [ebx + 0x158], eax
mov dword [ebx + 0x15c], ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
mov ecx, dword [ebx + 0x144]
mov edx, dword [ecx]
mov edx, dword [edx + 0xfc]
push 0xd
lea eax, [esp + 0x4c]
push eax
push 0x405840
call edx
mov esi, eax
test esi, esi
je case.0x402f06.276
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
mov ecx, esi
call edx
cmp eax, ebx
jne case.0x402f06.276
mov eax, dword [ebx]
push eax
call dword [sym.imp.USER32.dll_SetCapture]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov byte [ebx + 0x1a8], 1
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], 0x10
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov word [esp + 0x26], di
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x18], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x108]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call edx
mov dword [ebx + 0x150], esi
jmp case.0x402f06.276
mov ecx, esi
shr ecx, 0x10
cmp dword [ebx + 0x150], 0
movsx eax, si
movsx ecx, cx
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
mov dword [ebx + 0x158], eax
mov dword [ebx + 0x15c], ecx
je case.0x402f06.276
push ebx
call fcn.00404630
mov edx, dword [ebx + 0x150]
mov ecx, dword [esp + 0x78]
xor eax, eax
mov dword [esp + 0x14], 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 + 0x18], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x10], 0xe
mov dword [esp + 0x14], edx
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov word [esp + 0x26], di
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x150]
mov dword [esp + 0x18], eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x108]
lea eax, [esp + 0x10]
push eax
call edx
mov dword [ebx + 0x150], 0
jmp case.0x402f06.276
mov eax, dword [ebx]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, esi
shr ecx, 0x10
movsx ecx, cx
movsx eax, si
mov dword [ebx + 0x158], eax
mov dword [ebx + 0x15c], ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
mov ecx, dword [ebx + 0x144]
mov edx, dword [ecx]
mov edx, dword [edx + 0xfc]
push 0xd
lea eax, [esp + 0x4c]
push eax
push 0x405840
call edx
mov edi, eax
test edi, edi
je case.0x402f06.276
mov eax, dword [edi]
mov edx, dword [eax + 0x1c]
mov ecx, edi
call edx
cmp eax, ebx
jne case.0x402f06.276
mov eax, dword [edi]
mov edx, dword [eax + 0xf0]
mov ecx, edi
call edx
mov eax, dword [ebx]
push eax
call dword [sym.imp.USER32.dll_SetCapture]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
xor eax, eax
mov dword [esp + 0x14], 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 + 0x18], eax
mov eax, dword [ebp + 0x10]
mov byte [ebx + 0x1a8], 1
mov dword [esp + 0x10], 0xf
mov dword [esp + 0x14], edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov word [esp + 0x26], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x18], eax
mov eax, dword [edi]
mov edx, dword [eax + 0x108]
lea ecx, [esp + 0x10]
push ecx
mov ecx, edi
call edx
mov dword [ebx + 0x150], edi
jmp case.0x402f06.276
movsx eax, si
mov ecx, esi
shr ecx, 0x10
mov dword [esp + 0x34], eax
movsx edx, cx
mov ecx, dword [ebx]
lea eax, [esp + 0x34]
push eax
push ecx
mov dword [esp + 0x40], edx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov dword [ebx + 0x158], eax
mov dword [ebx + 0x15c], ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov ecx, dword [ebx + 0x144]
mov edx, dword [ecx]
mov edx, dword [edx + 0xfc]
push 0xd
lea eax, [esp + 0x4c]
push eax
push 0x405840
call edx
mov dword [esp + 0x40], eax
test eax, eax
je case.0x402f06.276
mov ecx, eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
call edx
cmp eax, ebx
jne case.0x402f06.276
xor eax, eax
xor ecx, ecx
shr edi, 0x10
test di, di
setl cl
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x10], 0x12
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], esi
call section..text
mov word [esp + 0x26], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x18], eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x108]
lea eax, [esp + 0x10]
push eax
call edx
movzx eax, word [ebx + 0x15c]
movzx ecx, word [ebx + 0x158]
mov edx, dword [ebx]
shl eax, 0x10
or eax, ecx
push eax
push 0
push 0x200
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp case.0x402f06.276
test esi, esi
je case.0x402f06.276
mov eax, dword [ebp + 0xc]
push esi
push edi
add eax, 0x2000
push eax
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x44]
mov dword [ecx], eax
mov al, 1
jmp 0x4039f8
mov ecx, dword [ebx + 0x144]
movsx eax, si
shr esi, 0x10
movsx esi, si
mov dword [esp + 0x48], eax
mov dword [esp + 0x94], eax
push 0xd
lea eax, [esp + 0x4c]
mov byte [ebx + 0x1a7], 0
mov dword [esp + 0x50], esi
mov edx, dword [ecx]
mov edx, dword [edx + 0xfc]
push eax
push 0x405840
call edx
mov edi, eax
test edi, edi
je case.0x402f06.276
mov ecx, dword [ebx + 0x14c]
test ecx, ecx
je 0x4036f1
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], 0xc
mov dword [esp + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x14c]
mov dword [esp + 0x18], eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x108]
lea eax, [esp + 0x10]
push eax
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0x98]
lea ecx, [esp + 0x12c]
push ecx
mov ecx, edi
call edx
mov dword [esp + 0x1c8], 0
mov eax, dword [esp + 0x12c]
cmp word [eax], 0
jne 0x403738
lea ecx, [esp + 0x130]
cmp eax, ecx
je 0x403731
push eax
call fcn.005654ab
add esp, 4
mov al, 1
jmp 0x4039f8
push 0x30
lea esi, [ebx + 0x114]
push 0
push esi
call fcn.00563860
mov eax, dword [ebx]
mov edx, dword [0x81481c]
mov dword [ebx + 0x11c], eax
mov dword [ebx + 0x120], eax
mov eax, dword [esp + 0x138]
mov dword [ebx + 0x138], eax
mov dword [esi], 0x30
mov dword [ebx + 0x118], 1
mov dword [ebx + 0x134], edx
mov edx, dword [edi]
mov eax, dword [edx + 0x30]
add esp, 0xc
mov ecx, edi
call eax
cmp dword [ebx + 0x110], 0
mov ecx, dword [eax]
mov dword [ebx + 0x124], ecx
mov edx, dword [eax + 4]
mov dword [ebx + 0x128], edx
mov ecx, dword [eax + 8]
mov dword [ebx + 0x12c], ecx
mov edx, dword [eax + 0xc]
mov dword [ebx + 0x130], edx
jne 0x403801
mov eax, dword [0x81481c]
mov ecx, dword [ebx]
push 0
push eax
push 0
push ecx
push bind
push bind
push bind
push bind
push reloc.WS2_32.dll_closesocket
push 0
push 0x7c2018
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push esi
push 0
push 0x432
push eax
mov dword [ebx + 0x110], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [edi]
mov eax, dword [edx + 0xa4]
mov ecx, edi
call eax
mov ecx, dword [ebx + 0x110]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push 0
push 0x418
push ecx
call edi
mov edx, dword [ebx + 0x110]
push esi
push 0
push 0x436
push edx
call edi
mov eax, dword [ebx + 0x110]
push esi
push 1
push 0x411
push eax
call edi
mov eax, dword [esp + 0x12c]
jmp 0x40371d
cmp eax, 0x2a3
je 0x4038b5
cmp eax, 0x8001
jne case.0x402f06.276
xor esi, esi
cmp dword [ebx + 0x1ec], esi
jle 0x40388c
mov edx, dword [ebx + 0x1e8]
mov ecx, dword [edx + esi*4]
test ecx, ecx
je 0x403883
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
inc esi
cmp esi, dword [ebx + 0x1ec]
jl 0x40386e
mov eax, dword [ebx + 0x1e8]
test eax, eax
je 0x40389f
push eax
call fcn.005654ab
add esp, 4
xor eax, eax
mov dword [ebx + 0x1e8], eax
mov dword [ebx + 0x1f0], eax
mov dword [ebx + 0x1ec], eax
jmp case.0x402f06.276
mov eax, dword [ebx + 0x110]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x4038d6
lea ecx, [ebx + 0x114]
push ecx
push 0
push 0x411
push eax
call esi
cmp byte [ebx + 0x1a7], 0
je 0x4038ed
mov edx, dword [ebx]
push 0xffffffffffffffff
push 0
push 0x200
push edx
call esi
mov byte [ebx + 0x1a7], 0
jmp case.0x402f06.276
cmp dword [ebx + 0x1f8], 0
jle 0x4039f6
mov eax, dword [ebx + 0x1f4]
mov esi, dword [eax]
mov dword [esp + 0x30], esi
test esi, esi
je 0x4039f6
mov eax, dword [ebx + 0x1f8]
test eax, eax
jle 0x403951
dec eax
mov dword [ebx + 0x1f8], eax
test eax, eax
jle 0x403951
mov ecx, dword [ebx + 0x1f4]
lea edx, [eax*4]
push edx
lea eax, [ecx + 4]
push eax
push ecx
call fcn.005645b0
add esp, 0xc
mov esi, dword [esi + 0x108]
test esi, esi
je 0x403988
cmp dword [esi + 0x38], 0
jle 0x403988
xor edi, edi
cmp dword [esi + 0x38], edi
jle 0x403988
mov ecx, dword [esi + 0x34]
mov ecx, dword [ecx + edi*4]
test ecx, ecx
je 0x403982
mov edx, dword [ecx]
mov eax, dword [esp + 0x30]
mov edx, dword [edx + 8]
push eax
call edx
test al, al
je 0x403988
inc edi
cmp edi, dword [esi + 0x38]
jl 0x403968
xor esi, esi
cmp dword [ebx + 0x1b0], esi
jle 0x4039b9
mov edi, dword [esp + 0x30]
jmp 0x4039a0
mov eax, dword [ebx + 0x1ac]
mov ecx, dword [eax + esi*4]
mov edx, dword [ecx]
mov eax, dword [edx]
push edi
call eax
inc esi
cmp esi, dword [ebx + 0x1b0]
jl 0x4039a0
mov esi, dword [esp + 0x30]
mov eax, dword [esi + 0x84]
lea ecx, [esi + 0x88]
cmp eax, ecx
je 0x4039d6
push eax
call fcn.005654ab
add esp, 4
mov eax, dword [esi]
lea edx, [esi + 4]
cmp eax, edx
je 0x4039e8
push eax
call fcn.005654ab
add esp, 4
push esi
call fcn.00563182
add esp, 4
jmp case.0x402f06.276
xor al, al
mov ecx, dword [esp + 0x1c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1a8]
xor ecx, esp
call fcn.005635df
mov esp, ebp
pop ebp
ret 0xc