Function at 0x412900
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49cfb0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x430
mov eax, dword [0x4d7200]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x3c]
mov esi, dword [ebx + 8]
mov dword [ebp - 0x420], esi
mov dword [ebp - 0x418], eax
test eax, eax
je 0x41334f
cmp esi, 1
jl 0x41334f
cmp esi, dword [edi + 0x40]
jg 0x41334f
lea edx, [esi + esi*8]
shl edx, 3
mov dword [ebp - 0x428], edx
cmp dword [edx + eax + 0xc], 0
je 0x41334f
mov ecx, dword [edx + eax]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x424], esi
mov esi, dword [ebp - 0x420]
mov dword [ebp - 0x414], ecx
cmp ecx, 0x20
jne 0x412a9a
mov eax, dword [edx + eax + 0x44]
mov dword [ebp - 0x418], eax
test eax, eax
je 0x412d7b
mov ecx, eax
call fcn.00411670
push 0x268
push dword [ebp - 0x418]
call fcn.0048a2bd
add esp, 8
mov edx, dword [ebp - 0x414]
lea ecx, [esi + esi*8]
shl ecx, 3
mov eax, dword [edi + 0x3c]
add eax, ecx
cmp edx, 0x1b
jne 0x412de5
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x50], 0x20
push ecx
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x4c], 0x80000020
push 0x43f
mov dword [ebp - 0x48], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], 0
push dword [eax + 4]
call dword [ebp - 0x424]
cmp eax, 0xffffffff
je 0x412e76
lea eax, [esi + esi*8]
shl eax, 3
xor esi, esi
mov dword [ebp - 0x41c], eax
nop
mov edx, dword [edi + 0x3c]
test edx, edx
je 0x412a6c
mov ecx, dword [ebp - 0x48]
cmp ecx, 1
jl 0x412a6c
cmp ecx, dword [edi + 0x40]
jg 0x412a6c
lea eax, [ecx + ecx*8]
cmp dword [edx + eax*8 + 0xc], 0
je 0x412a6c
cmp dword [edx + eax*8], 0x1c
jne 0x412a6c
push ecx
mov ecx, edi
call fcn.00412900
mov ecx, dword [ebp - 0x41c]
lea eax, [ebp - 0x50]
push eax
mov eax, dword [edi + 0x3c]
inc esi
push esi
push 0x43f
push dword [ecx + eax + 4]
call dword [ebp - 0x424]
cmp eax, 0xffffffff
jne 0x412a40
mov esi, dword [ebp - 0x420]
jmp 0x412e76
cmp ecx, 0x19
jne 0x412b13
mov eax, dword [edx + eax + 4]
push 0
push 0
push 0x1304
push eax
mov dword [ebp - 0x428], eax
call dword [ebp - 0x424]
test eax, eax
je 0x412d7b
mov esi, eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 8
push eax
lea eax, [esi - 1]
xorps xmm0, xmm0
push eax
push 0x133c
push dword [ebp - 0x428]
movlpd qword [ebp - 0x2c], xmm0
movlpd qword [ebp - 0x24], xmm0
movlpd qword [ebp - 0x1c], xmm0
call dword [ebp - 0x424]
test eax, eax
je 0x412b03
push dword [ebp - 0x18]
mov ecx, edi
call fcn.00412900
sub esi, 1
jne 0x412ac3
mov esi, dword [ebp - 0x420]
jmp 0x4129d6
cmp ecx, 3
jne 0x412b4c
lea ecx, [ebp - 0x2c]
push ecx
push 0
push 0x1603
push dword [edx + eax + 4]
call dword [ebp - 0x424]
test eax, eax
je 0x412d7b
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x412d7b
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Destroy]
jmp 0x4129d6
cmp ecx, 0x26
jne 0x412b97
push 0x3b0
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.0048ba10
mov eax, dword [edi + 0x230]
add esp, 0xc
mov dword [ebp - 0x40c], eax
lea eax, [ebp - 0x410]
mov dword [ebp - 0x410], 0x3bc
mov dword [ebp - 0x408], esi
push eax
push 2
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
jmp 0x4129d6
cmp ecx, 0x23
je 0x412ba5
cmp ecx, 0x24
jne 0x412c58
mov eax, dword [edx + eax + 0x44]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x412c52
mov ecx, dword [eax]
cmp ecx, esi
jne 0x412bc0
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x412c00
cmp ecx, 1
jl 0x412c00
cmp ecx, dword [edi + 0x40]
jg 0x412c00
mov esi, dword [ebp - 0x418]
lea eax, [ecx + ecx*8]
cmp dword [esi + eax*8 + 0xc], 0
mov esi, dword [ebp - 0x420]
je 0x412c00
mov edx, dword [ebp - 0x418]
push ecx
mov ecx, edi
mov dword [edx + eax*8 + 0x44], 0
call fcn.00412900
mov edx, dword [ebp - 0x428]
mov eax, dword [edi + 0x3c]
push 0x1c
push dword [ebp - 0x41c]
mov dword [edx + eax + 0x44], 0
call fcn.0048a2bd
mov ecx, dword [ebp - 0x414]
add esp, 8
cmp ecx, 0x1a
je 0x412e20
cmp ecx, 0x16
je 0x412e20
cmp ecx, 0x28
je 0x412e20
cmp ecx, 0x10
jne 0x412d7b
push esi
mov ecx, edi
call fcn.00416eb0
jmp 0x412e76
mov eax, dword [ebp - 0x418]
cmp ecx, 0x25
jne 0x412c7f
mov eax, dword [edx + eax + 0x44]
test eax, eax
je 0x412d7b
mov ecx, dword [ebp - 0x418]
push 0x10
push eax
mov dword [edx + ecx + 0x44], 0
jmp 0x4129ce
cmp ecx, 0xc
jne 0x412c8d
mov eax, dword [edx + eax + 0x44]
jmp 0x412d13
cmp ecx, 0x1d
jne 0x412ce6
mov ecx, dword [ebp - 0x418]
lea eax, [esi + esi*8]
push 0
push 2
push 0x1108
push dword [ecx + eax*8 + 4]
call dword [ebp - 0x424]
test eax, eax
je 0x412cb9
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Destroy]
mov eax, dword [edi + 0x3c]
lea ecx, [esi + esi*8]
push 0
push 0
push 0x1108
push dword [eax + ecx*8 + 4]
call dword [ebp - 0x424]
test eax, eax
je 0x412d7b
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Destroy]
jmp 0x4129d6
cmp ecx, 0x17
jne 0x412d24
mov eax, dword [edx + eax + 0x44]
movzx ecx, ax
test eax, eax
je 0x412d7b
mov eax, ecx
test eax, eax
je 0x412d08
push eax
mov ecx, edi
call fcn.00412900
mov eax, dword [edi + 0x3c]
lea ecx, [esi + esi*8]
movzx eax, word [eax + ecx*8 + 0x46]
test eax, eax
je 0x412d7b
push eax
mov ecx, edi
call fcn.00412900
jmp 0x4129d6
cmp ecx, 0x22
jne 0x412c21
mov eax, dword [edx + eax + 0x44]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x412d7b
push 0x40bed0
push 5
push 4
add eax, 4
mov dword [ebp - 4], 0
push eax
call fcn.0048a1a8
push 0x18
push dword [ebp - 0x41c]
mov dword [ebp - 4], 0xffffffff
call fcn.0048a2bd
mov eax, dword [edi + 0x3c]
lea ecx, [esi + esi*8]
mov dword [eax + ecx*8 + 0x44], 0
jmp 0x4129d3
mov edx, dword [ebp - 0x414]
lea ecx, [esi + esi*8]
shl ecx, 3
cmp edx, 0x11
jne 0x412da1
mov eax, dword [edi + 0x3c]
push 0
push esi
push dword [eax + ecx + 8]
call dword [sym.imp.USER32.dll_RemoveMenu]
jmp 0x412e76
cmp edx, 0x1c
jne 0x4129e2
mov eax, dword [edi + 0x3c]
push 0
push esi
push 0x419
push dword [eax + ecx + 4]
call dword [ebp - 0x424]
cmp eax, 0xffffffff
je 0x412e76
push 0
push eax
mov eax, dword [edi + 0x3c]
lea ecx, [esi + esi*8]
push 0x416
push dword [eax + ecx*8 + 4]
call dword [ebp - 0x424]
jmp 0x412e76
mov eax, dword [eax + 4]
test eax, eax
je 0x412e76
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi + 0x3c]
lea ecx, [esi + esi*8]
push dword [eax + ecx*8 + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [edi + 0x3c]
lea ecx, [esi + esi*8]
cmp dword [eax + ecx*8 + 8], 0
je 0x412e76
push esi
mov ecx, edi
call fcn.00416eb0
jmp 0x412e76
mov eax, dword [edi + 0x3c]
lea ecx, [esi + esi*8]
mov ecx, dword [eax + ecx*8 + 0x44]
mov dword [ebp - 0x418], ecx
test ecx, ecx
je 0x412e66
mov eax, dword [ecx]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x412e5d
mov esi, eax
push dword [ecx + esi*4]
mov ecx, edi
call fcn.00412900
mov ecx, dword [ebp - 0x418]
sub esi, 1
jne 0x412e42
mov esi, dword [ebp - 0x420]
push ecx
call fcn.00489f13
add esp, 4
mov eax, dword [edi + 0x3c]
lea ecx, [esi + esi*8]
push dword [eax + ecx*8 + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [edi + 0x3c]
lea ecx, [esi + esi*8]
mov edx, dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [eax + ecx*8 + 0x14]
test eax, eax
je 0x412e93
push eax
call edx
mov edx, dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [edi + 0x3c]
lea ecx, [esi + esi*8]
mov eax, dword [eax + ecx*8 + 0x10]
test eax, eax
je 0x412ea4
push eax
call edx
mov eax, dword [edi + 0x3c]
lea ecx, [esi + esi*8]
mov ecx, dword [eax + ecx*8 + 0x44]
test ecx, ecx
je 0x412ed7
mov eax, dword [ebp - 0x414]
cmp eax, 0xb
jne 0x412ec6
push ecx
call dword [sym.imp.USER32.dll_DestroyIcon]
jmp 0x412ed7
cmp eax, 0x13
je 0x412ed0
cmp eax, 0x1c
jne 0x412ed7
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [edi + 0x3c]
lea ecx, [esi + esi*8]
push 0x48
push 0
lea eax, [eax + ecx*8]
push eax
call fcn.0048ba10
mov eax, dword [edi + 0x3c]
lea ecx, [esi + esi*8]
add esp, 0xc
mov dword [eax + ecx*8 + 0xc], 0
mov edx, dword [edi + 0x40]
cmp esi, edx
jne 0x412f22
test edx, edx
je 0x412f22
mov eax, dword [edi + 0x3c]
lea ecx, [edx + edx*8]
lea eax, [eax + ecx*8]
add eax, 0xc
cmp dword [eax], 0
jne 0x412f22
dec edx
sub eax, 0x48
mov dword [edi + 0x40], edx
test edx, edx
jne 0x412f12
mov eax, dword [sym.imp.USER32.dll_GetParent]
mov ecx, dword [sym.imp.USER32.dll_PeekMessageW]
mov dword [ebp - 0x42c], eax
mov eax, dword [sym.imp.USER32.dll_TranslateMessage]
mov dword [ebp - 0x438], eax
mov eax, dword [sym.imp.USER32.dll_DispatchMessageW]
mov dword [ebp - 0x43c], eax
mov eax, dword [sym.imp.USER32.dll_TranslateAcceleratorW]
mov dword [ebp - 0x430], eax
mov eax, dword [sym.imp.USER32.dll_IsDialogMessageW]
mov dword [ebp - 0x434], eax
mov eax, dword [sym.imp.USER32.dll_GetWindowLongW]
mov dword [ebp - 0x414], ecx
mov dword [ebp - 0x428], eax
jmp 0x412f78
mov ecx, dword [ebp - 0x414]
mov esi, dword [edi + 0x1c0]
test esi, esi
je 0x41334b
cmp byte [esi + 0x38], 0
lea eax, [esi + 0x38]
jne 0x413338
push 1
push 0
lea eax, [esi + 0x14]
mov dword [esi], 0
push 0
mov dword [esi + 4], 0
xorps xmm0, xmm0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
movups xmmword [eax], xmm0
push 0
movq qword [eax + 0x10], xmm0
push eax
mov dword [eax + 0x18], 0
call ecx
test eax, eax
je 0x41334b
mov eax, dword [esi + 0x18]
cmp eax, 0xcae
jne 0x413036
mov dword [esi], 0xfffffffa
mov byte [esi + 0x39], 1
cmp eax, 0x100
jne 0x4132cc
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x4132cc
mov eax, 0xd
cmp ax, word [esi + 0x1c]
jne 0x4132cc
mov ecx, dword [esi + 0x14]
xor eax, eax
mov dword [ebp - 0x418], ecx
test ecx, ecx
jne 0x413238
xor edx, edx
jmp 0x4132a2
mov ecx, dword [ebp - 0x414]
test eax, eax
je 0x412f78
mov ecx, dword [esi + 0x30]
test ecx, ecx
je 0x412ff1
cmp eax, 0xcb1
jne 0x412ff1
mov edx, dword [ecx + 0x3c]
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x418], eax
test edx, edx
je 0x412f72
cmp eax, 1
jl 0x412f72
cmp eax, dword [ecx + 0x40]
jg 0x412f72
lea eax, [eax + eax*8]
cmp dword [edx + eax*8 + 0xc], 0
je 0x412f72
mov edx, dword [esi + 0x20]
cmp edx, 0x205
jne 0x4130c3
mov eax, dword [ecx + 0x1c0]
mov edx, dword [esi + 0x14]
test eax, eax
je 0x412f72
mov dword [eax + 0x30], ecx
mov eax, dword [ecx + 0x1c0]
mov dword [eax], 0xffffffea
mov eax, dword [ecx + 0x1c0]
mov dword [eax + 8], 0x205
jmp 0x413204
cmp edx, 0x203
jne 0x4130fd
mov eax, dword [ecx + 0x1c0]
mov edx, dword [esi + 0x14]
test eax, eax
je 0x412f72
mov dword [eax + 0x30], ecx
mov eax, dword [ecx + 0x1c0]
mov dword [eax], 0xfffffff2
mov eax, dword [ecx + 0x1c0]
mov dword [eax + 8], 0x203
jmp 0x413204
cmp edx, 0x202
jne 0x41311e
push 0
push 0
push dword [esi + 0x14]
push edx
mov edx, dword [ebp - 0x418]
push edx
call fcn.00417150
jmp 0x412f72
cmp edx, 0x402
jne 0x413158
mov eax, dword [ecx + 0x1c0]
mov edx, dword [esi + 0x14]
test eax, eax
je 0x412f72
mov dword [eax + 0x30], ecx
mov eax, dword [ecx + 0x1c0]
mov dword [eax], 0xffffff35
mov eax, dword [ecx + 0x1c0]
mov dword [eax + 8], 0x402
jmp 0x413204
cmp edx, 0x403
je 0x4131cf
cmp edx, 0x404
je 0x4131cf
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x420], eax
mov eax, dword [ecx + 0x1c0]
cmp edx, 0x405
jne 0x4131a7
test eax, eax
je 0x412f72
mov dword [eax + 0x30], ecx
mov eax, dword [ecx + 0x1c0]
mov dword [eax], 0xffffff34
mov eax, dword [ecx + 0x1c0]
mov dword [eax + 8], edx
mov edx, dword [ebp - 0x420]
jmp 0x413204
test eax, eax
je 0x412f72
mov dword [eax + 0x30], ecx
mov eax, dword [ecx + 0x1c0]
mov dword [eax], 0xffffff36
mov eax, dword [ecx + 0x1c0]
mov dword [eax + 8], edx
mov edx, dword [ebp - 0x420]
jmp 0x413204
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x41c], eax
mov eax, dword [ecx + 0x1c0]
test eax, eax
je 0x412f72
mov dword [eax + 0x30], ecx
mov eax, dword [ecx + 0x1c0]
mov dword [eax], 0xffffff33
mov eax, dword [ecx + 0x1c0]
mov dword [eax + 8], edx
mov edx, dword [ebp - 0x41c]
mov eax, dword [ecx + 0x1c0]
mov dword [eax + 4], edx
mov eax, dword [ecx + 0x1c0]
mov edx, dword [ebp - 0x418]
mov dword [eax + 0xc], edx
mov eax, dword [ecx + 0x1c0]
mov dword [eax + 0x10], 0
mov eax, dword [ecx + 0x1c0]
mov byte [eax + 0x38], 1
jmp 0x412f72
push 0xfffffffffffffff4
push ecx
call dword [ebp - 0x428]
mov edx, eax
mov eax, dword [ebp - 0x41c]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x41329e
cmp edx, 1
jl 0x41329e
cmp edx, dword [eax + 0x40]
jg 0x41329e
lea eax, [edx + edx*8]
cmp dword [ecx + eax*8 + 0xc], 0
lea ecx, [ecx + eax*8]
je 0x41329e
mov eax, dword [ebp - 0x418]
cmp dword [ecx + 4], eax
jne 0x41329e
mov eax, dword [esi + 0x30]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x41329a
cmp edx, dword [eax + 0x40]
jg 0x41329a
lea eax, [edx + edx*8]
cmp dword [ecx + eax*8 + 0xc], 0
je 0x41329a
mov eax, dword [ecx + eax*8]
cmp eax, 0x23
je 0x4132ac
cmp eax, 0x24
jne 0x4132a2
jmp 0x4132ac
xor eax, eax
jmp 0x4132a2
xor edx, edx
mov eax, edx
cmp eax, 0x22
je 0x4132ac
cmp eax, 0x25
jne 0x4132cc
mov ecx, dword [esi + 0x14]
push ecx
movzx eax, dx
push eax
push 0x111
push ecx
call dword [ebp - 0x42c]
push eax
call dword [ebp - 0x424]
jmp 0x412f72
mov eax, dword [esi + 0x34]
test eax, eax
je 0x413321
lea ecx, [esi + 0x14]
test ecx, ecx
jne 0x4132de
xor cl, cl
jmp 0x41331d
mov edx, dword [eax + 0x244]
add eax, 0x230
mov dword [ebp - 0x41c], eax
test edx, edx
je 0x41330f
push ecx
push edx
push dword [eax]
call dword [ebp - 0x430]
test eax, eax
setne cl
test eax, eax
jne 0x41331d
mov eax, dword [ebp - 0x41c]
lea ecx, [esi + 0x14]
push ecx
push dword [eax]
call dword [ebp - 0x434]
test eax, eax
setne cl
test cl, cl
jne 0x413335
lea eax, [esi + 0x14]
push eax
call dword [ebp - 0x438]
lea eax, [esi + 0x14]
push eax
call dword [ebp - 0x43c]
lea eax, [esi + 0x38]
xor cl, cl
mov byte [eax], cl
cmp dword [esi], 0
mov ecx, dword [ebp - 0x414]
jne 0x412f78
mov al, 1
jmp 0x413351
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00489f05
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4