Function at 0x415f90
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 0x47d000
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x438
mov eax, dword [0x4b41e0]
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 edx, dword [ebx + 8]
mov dword [ebp - 0x414], edx
test eax, eax
je 0x4169e0
cmp edx, 1
jl 0x4169e0
cmp edx, dword [edi + 0x40]
jg 0x4169e0
lea esi, [edx + edx*8]
shl esi, 3
mov dword [ebp - 0x424], esi
cmp dword [esi + eax + 0xc], 0
je 0x4169e0
mov ecx, dword [esi + eax]
mov edx, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x420], edx
mov edx, dword [ebp - 0x414]
mov dword [ebp - 0x41c], ecx
cmp ecx, 0x20
jne 0x4160a1
mov eax, dword [esi + eax + 0x44]
mov dword [ebp - 0x424], eax
test eax, eax
je 0x416351
mov ecx, eax
call fcn.00414080
push 0x260
push dword [ebp - 0x424]
call fcn.0046a21d
add esp, 8
mov ecx, dword [edi + 0x3c]
mov eax, dword [ecx + esi + 4]
test eax, eax
je 0x4164b1
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi + 0x3c]
push dword [eax + esi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [edi + 0x3c]
cmp dword [eax + esi + 8], 0
je 0x4164b1
push dword [ebp - 0x414]
mov ecx, edi
call fcn.0041aaf0
jmp 0x4164b1
cmp ecx, 0x19
jne 0x416120
mov eax, dword [esi + eax + 4]
push 0
push 0
push 0x1304
push eax
mov dword [ebp - 0x428], eax
call dword [ebp - 0x420]
test eax, eax
je 0x416351
mov esi, eax
nop word [eax + 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 - 0x420]
test eax, eax
je 0x416110
push dword [ebp - 0x18]
mov ecx, edi
call fcn.00415f90
sub esi, 1
jne 0x4160d0
mov esi, dword [ebp - 0x424]
jmp 0x41605c
cmp ecx, 3
jne 0x416159
lea ecx, [ebp - 0x2c]
push ecx
push 0
push 0x1603
push dword [esi + eax + 4]
call dword [ebp - 0x420]
test eax, eax
je 0x416351
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x416351
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Destroy]
jmp 0x41605c
cmp ecx, 0x26
jne 0x4161aa
push 0x3b0
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.0046b980
mov eax, dword [edi + 0x230]
add esp, 0xc
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp - 0x414]
mov dword [ebp - 0x408], eax
lea eax, [ebp - 0x410]
push eax
push 2
mov dword [ebp - 0x410], 0x3bc
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
jmp 0x41605c
cmp ecx, 0x23
je 0x4161b8
cmp ecx, 0x24
jne 0x416259
mov eax, dword [esi + eax + 0x44]
mov dword [ebp - 0x428], eax
test eax, eax
je 0x416256
mov ecx, dword [eax]
cmp ecx, edx
jne 0x4161d3
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4161fe
cmp ecx, 1
jl 0x4161fe
cmp ecx, dword [edi + 0x40]
jg 0x4161fe
mov edx, dword [edi + 0x3c]
lea eax, [ecx + ecx*8]
cmp dword [edx + eax*8 + 0xc], 0
je 0x4161fe
push ecx
mov ecx, edi
mov dword [edx + eax*8 + 0x44], 0
call fcn.00415f90
mov eax, dword [edi + 0x3c]
push 0x1c
push dword [ebp - 0x428]
mov dword [eax + esi + 0x44], 0
call fcn.0046a21d
mov ecx, dword [ebp - 0x41c]
add esp, 8
mov edx, dword [ebp - 0x414]
cmp ecx, 0x1a
je 0x41645f
cmp ecx, 0x16
je 0x41645f
cmp ecx, 0x28
je 0x41645f
cmp ecx, 0x10
jne 0x416351
push edx
mov ecx, edi
call fcn.0041aaf0
jmp 0x4164b1
mov eax, dword [edi + 0x3c]
cmp ecx, 0x25
jne 0x41627d
mov eax, dword [esi + eax + 0x44]
test eax, eax
je 0x416351
mov edx, dword [edi + 0x3c]
push 0x10
push eax
mov dword [esi + edx + 0x44], 0
jmp 0x416054
cmp ecx, 0xc
jne 0x416288
mov eax, dword [esi + eax + 0x44]
jmp 0x4162ec
cmp ecx, 0x1d
jne 0x4162c6
push 0
push 2
push 0x1108
push dword [esi + eax + 4]
call dword [ebp - 0x420]
test eax, eax
je 0x4162ab
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Destroy]
mov eax, dword [edi + 0x3c]
push 0
push 0
push 0x1108
push dword [eax + esi + 4]
call dword [ebp - 0x420]
jmp 0x416145
cmp ecx, 0x17
jne 0x4162fd
mov eax, dword [esi + eax + 0x44]
movzx ecx, ax
test eax, eax
je 0x416351
mov eax, ecx
test eax, eax
je 0x4162e4
push eax
mov ecx, edi
call fcn.00415f90
mov eax, dword [edi + 0x3c]
movzx eax, word [eax + esi + 0x46]
test eax, eax
je 0x416351
push eax
mov ecx, edi
call fcn.00415f90
jmp 0x41605c
cmp ecx, 0x22
jne 0x416225
mov eax, dword [esi + eax + 0x44]
mov dword [ebp - 0x428], eax
test eax, eax
je 0x416351
push 0x40ea40
push 5
push 4
add eax, 4
mov dword [ebp - 4], 0
push eax
call fcn.0046a108
push 0x18
push dword [ebp - 0x428]
mov dword [ebp - 4], 0xffffffff
call fcn.0046a21d
mov eax, dword [edi + 0x3c]
mov dword [eax + esi + 0x44], 0
jmp 0x416059
mov eax, dword [ebp - 0x41c]
cmp eax, 0x11
jne 0x416377
mov eax, dword [ebp - 0x414]
push 0
push eax
mov eax, dword [edi + 0x3c]
push dword [eax + esi + 8]
call dword [sym.imp.USER32.dll_RemoveMenu]
jmp 0x4164b1
cmp eax, 0x1c
jne 0x4163ba
mov eax, dword [ebp - 0x414]
push 0
push eax
mov eax, dword [edi + 0x3c]
push 0x419
push dword [eax + esi + 4]
call dword [ebp - 0x420]
cmp eax, 0xffffffff
je 0x4164b1
push 0
push eax
mov eax, dword [edi + 0x3c]
push 0x416
push dword [eax + esi + 4]
call dword [ebp - 0x420]
jmp 0x4164b1
mov ecx, dword [edi + 0x3c]
cmp eax, 0x1b
jne 0x41605f
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0x20
push eax
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x4c], 0x80000020
push 0x43f
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x418], 0
movq qword [ebp - 0x38], xmm0
push dword [ecx + esi + 4]
call dword [ebp - 0x420]
cmp eax, 0xffffffff
je 0x4164b1
mov edx, dword [edi + 0x3c]
test edx, edx
je 0x416434
mov ecx, dword [ebp - 0x48]
cmp ecx, 1
jl 0x416434
cmp ecx, dword [edi + 0x40]
jg 0x416434
lea eax, [ecx + ecx*8]
cmp dword [edx + eax*8 + 0xc], 0
je 0x416434
cmp dword [edx + eax*8], 0x1c
jne 0x416434
push ecx
mov ecx, edi
call fcn.00415f90
mov eax, dword [ebp - 0x418]
lea ecx, [ebp - 0x50]
inc eax
push ecx
push eax
mov dword [ebp - 0x418], eax
mov eax, dword [edi + 0x3c]
push 0x43f
push dword [eax + esi + 4]
call dword [ebp - 0x420]
cmp eax, 0xffffffff
jne 0x416408
jmp 0x4164b1
mov eax, dword [edi + 0x3c]
mov ecx, dword [eax + esi + 0x44]
mov dword [ebp - 0x418], ecx
test ecx, ecx
je 0x4164a4
mov eax, dword [ecx]
test eax, eax
je 0x41649b
mov esi, eax
nop dword [eax + eax]
push dword [ecx + esi*4]
mov ecx, edi
call fcn.00415f90
mov ecx, dword [ebp - 0x418]
sub esi, 1
jne 0x416480
mov esi, dword [ebp - 0x424]
push ecx
call fcn.00469e73
add esp, 4
mov eax, dword [edi + 0x3c]
push dword [eax + esi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [edi + 0x3c]
mov ecx, dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [eax + esi + 0x14]
test eax, eax
je 0x4164cb
push eax
call ecx
mov ecx, dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [edi + 0x3c]
mov eax, dword [eax + esi + 0x10]
test eax, eax
je 0x4164d9
push eax
call ecx
mov eax, dword [edi + 0x3c]
mov ecx, dword [eax + esi + 0x44]
test ecx, ecx
je 0x416509
mov eax, dword [ebp - 0x41c]
cmp eax, 0xb
jne 0x4164f8
push ecx
call dword [sym.imp.USER32.dll_DestroyIcon]
jmp 0x416509
cmp eax, 0x13
je 0x416502
cmp eax, 0x1c
jne 0x416509
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [edi + 0x3c]
push 0x48
add eax, esi
push 0
push eax
call fcn.0046b980
mov eax, dword [edi + 0x3c]
add esp, 0xc
mov dword [eax + esi + 0xc], 0
mov edx, dword [edi + 0x40]
cmp dword [ebp - 0x414], edx
jne 0x416551
test edx, edx
je 0x416551
mov eax, dword [edi + 0x3c]
lea ecx, [edx + edx*8]
lea eax, [eax + ecx*8]
add eax, 0xc
cmp dword [eax], 0
jne 0x416551
dec edx
sub eax, 0x48
mov dword [edi + 0x40], edx
test edx, edx
jne 0x416541
mov eax, dword [sym.imp.USER32.dll_GetParent]
mov edx, dword [sym.imp.USER32.dll_PeekMessageW]
mov dword [ebp - 0x430], eax
mov eax, dword [sym.imp.USER32.dll_TranslateMessage]
mov dword [ebp - 0x43c], eax
mov eax, dword [sym.imp.USER32.dll_DispatchMessageW]
mov dword [ebp - 0x440], eax
mov eax, dword [sym.imp.USER32.dll_TranslateAcceleratorW]
mov dword [ebp - 0x434], eax
mov eax, dword [sym.imp.USER32.dll_IsDialogMessageW]
mov dword [ebp - 0x438], eax
mov eax, dword [sym.imp.USER32.dll_GetWindowLongW]
mov dword [ebp - 0x414], edx
mov dword [ebp - 0x428], eax
jmp 0x4165a7
mov edx, dword [ebp - 0x414]
mov esi, dword [edi + 0x1c0]
test esi, esi
je 0x4169dc
cmp byte [esi + 0x38], 0
lea ecx, [esi + 0x38]
mov dword [ebp - 0x444], ecx
jne 0x4169c9
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 [ebp - 0x418], eax
mov dword [eax + 0x18], 0
call edx
test eax, eax
je 0x4169dc
mov eax, dword [esi + 0x18]
cmp eax, 0xcae
jne 0x416671
mov dword [esi], 0xfffffffa
mov byte [esi + 0x39], 1
cmp eax, 0x100
jne 0x416959
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x416959
mov eax, 0xd
cmp ax, word [esi + 0x1c]
jne 0x416959
mov eax, dword [esi + 0x14]
xor ecx, ecx
mov dword [ebp - 0x42c], eax
test eax, eax
jne 0x4168c0
xor edx, edx
jmp 0x41692a
mov edx, dword [ebp - 0x414]
test eax, eax
je 0x4165a7
mov ecx, dword [esi + 0x30]
test ecx, ecx
je 0x41662c
cmp eax, 0xcb1
jne 0x41662c
mov edx, dword [ecx + 0x3c]
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x41c], eax
test edx, edx
je 0x4165a1
cmp eax, 1
jl 0x4165a1
cmp eax, dword [ecx + 0x40]
jg 0x4165a1
lea eax, [eax + eax*8]
cmp dword [edx + eax*8 + 0xc], 0
mov edx, dword [ebp - 0x414]
je 0x4165a7
mov edx, dword [esi + 0x20]
cmp edx, 0x205
jne 0x416712
mov eax, dword [ebp - 0x418]
mov edx, dword [eax]
mov eax, dword [ecx + 0x1c0]
test eax, eax
je 0x4165a1
mov dword [eax + 0x30], ecx
mov eax, dword [ecx + 0x1c0]
mov dword [eax], 0xffffffea
mov eax, dword [ecx + 0x1c0]
mov dword [eax + 8], 0x205
mov eax, dword [ecx + 0x1c0]
mov dword [eax + 4], edx
jmp 0x416895
cmp edx, 0x203
jne 0x41675a
mov eax, dword [ebp - 0x418]
mov edx, dword [eax]
mov eax, dword [ecx + 0x1c0]
test eax, eax
je 0x4165a1
mov dword [eax + 0x30], ecx
mov eax, dword [ecx + 0x1c0]
mov dword [eax], 0xfffffff2
mov eax, dword [ecx + 0x1c0]
mov dword [eax + 8], 0x203
mov eax, dword [ecx + 0x1c0]
mov dword [eax + 4], edx
jmp 0x416895
cmp edx, 0x202
jne 0x416780
mov eax, dword [ebp - 0x418]
push 0
push 0
push dword [eax]
push edx
mov edx, dword [ebp - 0x41c]
push edx
call fcn.0041ad90
jmp 0x4165a1
cmp edx, 0x402
jne 0x4167c8
mov eax, dword [ebp - 0x418]
mov edx, dword [eax]
mov eax, dword [ecx + 0x1c0]
test eax, eax
je 0x4165a1
mov dword [eax + 0x30], ecx
mov eax, dword [ecx + 0x1c0]
mov dword [eax], 0xffffff35
mov eax, dword [ecx + 0x1c0]
mov dword [eax + 8], 0x402
mov eax, dword [ecx + 0x1c0]
mov dword [eax + 4], edx
jmp 0x416895
cmp edx, 0x403
je 0x416863
cmp edx, 0x404
je 0x416863
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x424], eax
mov eax, dword [ecx + 0x1c0]
cmp edx, 0x405
jne 0x416832
mov edx, dword [ebp - 0x414]
test eax, eax
je 0x4165a7
mov edx, dword [ebp - 0x424]
mov dword [eax + 0x30], ecx
mov eax, dword [ecx + 0x1c0]
mov dword [eax], 0xffffff34
mov eax, dword [ecx + 0x1c0]
mov dword [eax + 8], 0x405
mov eax, dword [ecx + 0x1c0]
mov dword [eax + 4], edx
jmp 0x416895
test eax, eax
je 0x4165a1
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 eax, dword [ecx + 0x1c0]
mov edx, dword [ebp - 0x424]
mov dword [eax + 4], edx
jmp 0x416895
mov eax, dword [ecx + 0x1c0]
mov esi, dword [esi + 0x14]
test eax, eax
je 0x4165a1
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 eax, dword [ecx + 0x1c0]
mov dword [eax + 4], esi
mov eax, dword [ecx + 0x1c0]
mov edx, dword [ebp - 0x41c]
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 0x4165a1
push 0xfffffffffffffff4
push eax
call dword [ebp - 0x428]
mov edx, eax
mov eax, dword [ebp - 0x41c]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x416926
cmp edx, 1
jl 0x416926
cmp edx, dword [eax + 0x40]
jg 0x416926
lea eax, [edx + edx*8]
cmp dword [ecx + eax*8 + 0xc], 0
lea ecx, [ecx + eax*8]
je 0x416926
mov eax, dword [ebp - 0x42c]
cmp dword [ecx + 4], eax
jne 0x416926
mov eax, dword [esi + 0x30]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x416922
cmp edx, dword [eax + 0x40]
jg 0x416922
lea eax, [edx + edx*8]
cmp dword [ecx + eax*8 + 0xc], 0
je 0x416922
mov ecx, dword [ecx + eax*8]
cmp ecx, 0x23
je 0x416934
cmp ecx, 0x24
jne 0x41692a
jmp 0x416934
xor ecx, ecx
jmp 0x41692a
xor edx, edx
mov ecx, edx
cmp ecx, 0x22
je 0x416934
cmp ecx, 0x25
jne 0x416959
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
push ecx
movzx eax, dx
push eax
push 0x111
push ecx
call dword [ebp - 0x430]
push eax
call dword [ebp - 0x420]
jmp 0x4165a1
mov ecx, dword [esi + 0x34]
test ecx, ecx
je 0x4169af
lea eax, [esi + 0x14]
test eax, eax
jne 0x41696b
xor cl, cl
jmp 0x4169ab
mov edx, dword [ecx + 0x244]
add ecx, 0x230
mov dword [ebp - 0x42c], ecx
test edx, edx
je 0x41699d
push eax
push edx
push dword [ecx]
call dword [ebp - 0x434]
test eax, eax
setne cl
test eax, eax
jne 0x4169ab
mov ecx, dword [ebp - 0x42c]
lea eax, [esi + 0x14]
push eax
push dword [ecx]
call dword [ebp - 0x438]
test eax, eax
setne cl
test cl, cl
jne 0x4169c3
lea eax, [esi + 0x14]
push eax
call dword [ebp - 0x43c]
lea eax, [esi + 0x14]
push eax
call dword [ebp - 0x440]
mov ecx, dword [ebp - 0x444]
mov edx, dword [ebp - 0x414]
xor al, al
mov byte [ecx], al
cmp dword [esi], 0
jne 0x4165a7
mov al, 1
jmp 0x4169e2
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.00469e65
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4