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

Disassembly:
push 0xffffffffffffffff
push 0x4ff46c
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x519bc0]
xor eax, esp
mov dword [esp + 0x430], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x519bc0]
xor eax, esp
push eax
lea eax, [esp + 0x448]
mov dword fs:[0], eax
mov eax, dword [esp + 0x474]
mov esi, dword [esp + 0x46c]
mov ecx, dword [0x53d324]
mov dword [esp + 0x44], esi
test eax, eax
jne 0x4b649f
mov edi, ecx
mov dword [esp + 0x30], edi
jmp 0x4b64a5
mov edi, eax
mov dword [esp + 0x30], eax
test edi, edi
je 0x4b7014
mov ebx, 1
cmp dword [esp + 0x468], ebx
jne 0x4b6515
cmp byte [0x56e0d4], 0
jne 0x4b6515
cmp byte [0x56decf], 0
mov eax, dword [0x56e16c]
jne 0x4b6706
test ecx, ecx
je 0x4b6706
cmp eax, ebx
je 0x4b64eb
cmp eax, 2
jne 0x4b6706
push ebx
push 0xa2
push edi
call fcn.00483190
push ebx
push 0xa6
push edi
call fcn.00483190
push ebx
push 0xa1
push edi
call fcn.00483190
mov byte [0x56e0d4], bl
mov eax, dword [0x56e16c]
cmp eax, 8
je 0x4b7014
cmp eax, 0xb
je 0x4b7014
test byte [0x5707d4], bl
jne 0x4b6563
or dword [0x5707d4], ebx
mov dword [esp + 0x450], 0
push 0x478570
push 2
push 4
push 0x5707cc
call fcn.00424c40
mov dword [esp + 0x450], 0xffffffff
mov ebp, dword [esp + 0x464]
mov ebx, dword [esp + 0x45c]
mov edi, dword [esp + 0x458]
test esi, esi
mov esi, dword [esp + 0x460]
jne 0x4b65d1
cmp dword [esp + 0x468], 2
jae 0x4b65d1
mov eax, dword [esp + 0x468]
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, 0x96
add ecx, 0x32
push ecx
lea ecx, [eax*4 + 0x5707cc]
call fcn.00497270
test al, al
jne 0x4b65d1
cmp dword [0x56e16c], 9
jne 0x4b7014
cmp edi, esi
jne 0x4b7014
cmp ebx, ebp
jne 0x4b7014
mov edx, esi
or edx, ebp
jne 0x4b65e1
mov eax, edi
or eax, ebx
mov byte [esp + 0x17], dl
je 0x4b65e6
mov byte [esp + 0x17], 1
cmp byte [0x56decc], 0
jne 0x4b6609
cmp byte [0x56de9b], 0
jne 0x4b6609
cmp byte [esp + 0x17], 0
jne 0x4b6609
call fcn.004ea4fa
mov dword [0x56e164], eax
mov ecx, esi
or ecx, ebp
jne 0x4b6624
mov esi, 1
xor ebp, ebp
mov dword [esp + 0x460], esi
mov dword [esp + 0x464], ebp
cmp dword [esp + 0x468], 1
jne 0x4b6643
mov edx, dword [esp + 0x45c]
push ebp
push esi
push edx
push edi
mov ebx, 2
call fcn.004b63a0
mov eax, dword [esp + 0x45c]
push ebp
push esi
push eax
push edi
call fcn.00468f90
cmp dword [0x56e16c], 0
mov ebx, eax
mov dword [esp + 0x38], ebx
je 0x4b6746
cmp dword [0x5707b0], 0
je 0x4b6746
mov ecx, edi
or ecx, dword [esp + 0x45c]
jne 0x4b6746
push 0x3b8
push ecx
lea edx, [esp + 0x80]
push edx
call fcn.004e7df0
mov ecx, dword [0x56e0d0]
mov eax, dword [esp + 0x3c]
add esp, 0xc
push ecx
lea ecx, [esp + 0x7c]
mov dword [esp + 0x7c], 0x3b8
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], 0x7b
mov dword [esp + 0x88], 4
call fcn.004b5d10
mov ecx, 0x56e1b0
lea eax, [esp + 0x90]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4b6719
test dx, dx
je 0x4b6702
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4b6719
add eax, 4
add ecx, 4
test dx, dx
jne 0x4b66e0
xor eax, eax
jmp 0x4b671e
cmp byte [esp + 0x470], 0
je 0x4b7014
jmp 0x4b651a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4b6746
lea edx, [esp + 0x78]
push edx
push 1
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
push 0x200
lea eax, [esp + 0x94]
push eax
push 0x56e1b0
call fcn.004694b0
test byte [0x5707d4], 2
jne 0x4b6776
or dword [0x5707d4], 2
mov dword [esp + 0x450], 1
mov dword [0x5707c8], 0
mov dword [esp + 0x450], 0xffffffff
cmp byte [0x56e0d4], 0
je 0x4b6a89
cmp dword [0x5707b0], 0
je 0x4b6a89
cmp dword [esp + 0x468], 1
jne 0x4b6a89
mov edi, dword [0x56e0d0]
cmp edi, ebx
jne 0x4b67c5
push 0xbb8
mov ecx, 0x5707c8
call fcn.00497270
test al, al
je 0x4b6a08
mov edi, dword [0x56e0d0]
mov ecx, ebx
shl ecx, 4
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov esi, edx
shl edi, 4
shr esi, 0x1f
add esi, edx
mov eax, 0x51eb851f
imul edi
sar edx, 5
mov edi, edx
shr edi, 0x1f
add edi, edx
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], edi
cmp esi, edi
je 0x4b698a
call fcn.004b40c0
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
cmp eax, 0x20
push 0
setl byte [esp + 0x33]
call edi
push 0
mov ebx, eax
call edi
mov edx, dword [0x5707b0]
lea ecx, [esp + 0x18]
push ecx
push edx
mov edi, eax
call dword [sym.imp.USER32.dll_GetIconInfo]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
push edx
lea ecx, [eax + eax]
add ebp, ebp
push ebx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x64], ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x60]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectW]
movzx edx, word [esp + 0x72]
movzx eax, word [esp + 0x70]
mov ecx, dword [esp + 0x34]
push 0
push edx
push eax
push ebp
push ecx
call dword [sym.imp.GDI32.dll_CreateBitmap]
push eax
push edi
mov dword [esp + 0x50], eax
call dword [sym.imp.GDI32.dll_SelectObject]
cmp byte [esp + 0x2f], 0
mov dword [esp + 0x54], eax
jne 0x4b68a0
mov edx, dword [esp + 0x48]
mov dword [esp + 0x28], edx
xor eax, eax
cmp dword [0x54e7c0], 0xffffffff
setne al
add ebp, 0xffffffff
mov dword [esp + 0x58], eax
js 0x4b691e
xor esi, esi
cmp dword [esp + 0x34], esi
jbe 0x4b6915
mov eax, dword [esp + 0x34]
shr eax, 1
sub eax, dword [esp + 0x58]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x4c]
cmp esi, eax
jb 0x4b68fb
add eax, 2
cmp esi, eax
ja 0x4b68fb
mov ecx, dword [esp + 0x5c]
sub ecx, dword [esp + 0x40]
cmp ebp, ecx
jb 0x4b68fb
cmp byte [esp + 0x2f], 0
mov eax, ebx
jne 0x4b68f1
mov eax, edi
push 0xffff
push ebp
push esi
push eax
jmp 0x4b6908
push ebp
push esi
push ebx
call dword [sym.imp.GDI32.dll_GetPixel]
push eax
push ebp
push esi
push edi
call dword [sym.imp.GDI32.dll_SetPixel]
inc esi
cmp esi, dword [esp + 0x34]
jb 0x4b68cb
sub ebp, 1
jns 0x4b68b5
mov esi, dword [esp + 0x40]
mov edx, dword [esp + 0x50]
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
push edx
push ebx
call ebp
mov eax, dword [esp + 0x54]
push eax
push edi
call ebp
push ebx
mov ebx, dword [sym.imp.GDI32.dll_DeleteDC]
call ebx
push edi
call ebx
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.USER32.dll_CreateIconIndirect]
mov edx, dword [0x5707b0]
push edx
mov edi, eax
call dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, dword [esp + 0x24]
mov dword [0x5707b0], edi
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
push eax
call edi
mov ecx, dword [esp + 0x28]
push ecx
call edi
mov edx, dword [esp + 0x48]
push edx
call edi
mov ebp, dword [esp + 0x464]
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
push 0x3b8
lea eax, [esp + 0x7c]
push 0
push eax
call fcn.004e7df0
mov ecx, dword [esp + 0x3c]
add esp, 0xc
mov dword [esp + 0x78], 0x3b8
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], 0x7b
mov dword [esp + 0x84], 5
cmp esi, edi
je 0x4b69d3
mov dword [esp + 0x84], 7
mov edx, dword [0x5707b0]
push ebx
lea ecx, [esp + 0x7c]
mov dword [esp + 0x8c], 0x8007
mov dword [esp + 0x90], edx
call fcn.004b5d10
lea eax, [esp + 0x78]
push eax
push 1
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
mov dword [0x56e0d0], ebx
mov ecx, dword [esp + 0x458]
mov edx, dword [esp + 0x45c]
mov eax, dword [esp + 0x460]
mov dword [0x56e0e0], ecx
mov dword [0x56e0e4], edx
mov dword [0x56e0d8], eax
mov dword [0x56e0dc], ebp
push ebx
lea ecx, [esp + 0x434]
push str._4d__
push ecx
mov edx, 0xa
call fcn.004a63e0
add esp, 0xc
cmp dword [esp + 0x468], 0
jne 0x4b6af6
mov edx, dword [esp + 0x30]
push 0x9e
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x99
lea esi, [esp + 0x434]
mov edi, eax
call fcn.004b59a0
mov ebp, dword [esp + 0x30]
jmp 0x4b6b9e
cmp dword [esp + 0x468], 0
jne 0x4b6a08
cmp dword [0x56e16c], 0
mov eax, dword [esp + 0x45c]
mov dword [0x56e0f0], edi
mov dword [0x56e0f4], eax
mov dword [0x56e0e8], esi
mov dword [0x56e0ec], ebp
je 0x4b6a34
cmp byte [0x56decc], 0
je 0x4b6a34
or edi, eax
jne 0x4b6a34
test ebp, ebp
jl 0x4b7014
jg 0x4b6a34
cmp esi, 0x10000
jb 0x4b7014
jmp 0x4b6a34
mov ebp, dword [esp + 0x30]
push 0x9d
push ebp
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x98
lea esi, [esp + 0x434]
mov edi, eax
call fcn.004b59a0
mov ecx, dword [0x56e16c]
test ecx, ecx
jne 0x4b6ba4
cmp dword [esp + 0x468], 1
jne 0x4b6ba4
mov eax, dword [esp + 0x45c]
mov edx, dword [0x56e0f8]
add edx, dword [0x53e348]
mov ecx, dword [esp + 0x458]
push eax
mov eax, dword [0x56e0fc]
adc eax, dword [0x53e34c]
push ecx
push eax
push edx
call fcn.00468f90
cmp eax, 0x63
jne 0x4b6b72
cmp dword [0x555920], 0
jne 0x4b6b72
mov eax, 0x64
push eax
lea ecx, [esp + 0x434]
push str._4d__
push ecx
mov edx, 0xa
call fcn.004a63e0
add esp, 0xc
push 0xa4
lea esi, [esp + 0x434]
call fcn.004b59a0
mov ecx, dword [0x56e16c]
mov esi, dword [esp + 0x464]
cmp dword [esp + 0x45c], esi
mov ebx, dword [esp + 0x460]
jl 0x4b6bd4
jg 0x4b6bc6
cmp dword [esp + 0x458], ebx
jbe 0x4b6bd4
mov dword [esp + 0x458], ebx
mov dword [esp + 0x45c], esi
cmp byte [0x56dece], 0
je 0x4b6c4a
cmp byte [0x56decc], 0
jne 0x4b6bf0
cmp dword [esp + 0x468], 0
je 0x4b6c03
cmp byte [0x56de9b], 0
jne 0x4b6c1f
cmp dword [esp + 0x468], 1
jne 0x4b6c1f
test ecx, ecx
je 0x4b6c16
cmp ecx, 1
je 0x4b6c16
cmp ecx, 2
je 0x4b6c16
cmp ecx, 9
jne 0x4b6c1f
push 9
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esp + 0x45c]
mov eax, dword [esp + 0x458]
push 0
push esi
push ebx
push edx
push eax
call fcn.00468f90
push eax
push 0x402
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4b6ff3
test edi, edi
jne 0x4b6c62
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
jmp 0x4b6c87
lea ecx, [esp + 0x18]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
push 2
lea edx, [esp + 0x1c]
push edx
push ebp
push edi
call dword [sym.imp.USER32.dll_MapWindowPoints]
inc dword [esp + 0x24]
mov ecx, dword [0x56e16c]
mov esi, dword [esp + 0x44]
test esi, esi
jne 0x4b6c9e
push ebp
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [0x56e16c]
mov esi, eax
xor ebp, ebp
test ecx, ecx
jne 0x4b6ce8
cmp dword [esp + 0x468], 1
jne 0x4b6ce8
mov eax, dword [esp + 0x464]
mov ecx, dword [0x56e0fc]
mov edx, dword [0x56e0f8]
push eax
push ebx
push ecx
push edx
call fcn.00468f90
mov ecx, eax
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
imul ecx, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov ebp, edx
shr ebp, 0x1f
add ebp, edx
mov ecx, dword [esp + 0x464]
mov edx, dword [esp + 0x460]
mov eax, dword [esp + 0x45c]
push ecx
mov ecx, dword [esp + 0x45c]
push edx
push eax
push ecx
call fcn.00468f90
mov edx, dword [esp + 0x20]
sub edx, dword [esp + 0x18]
mov ecx, eax
imul ecx, edx
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov edi, edx
shr edi, 0x1f
add edi, edx
cmp ebp, edi
jle 0x4b6d31
mov ebp, edi
mov eax, dword [0x56dec0]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push esi
call ebx
mov ecx, dword [0x56dea4]
push ecx
push esi
mov dword [esp + 0x40], eax
call ebx
mov edx, dword [esp + 0x24]
dec edx
push edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x1c]
lea ecx, [edi + eax]
push ecx
inc edx
xor ecx, ecx
cmp ebp, 1
setle cl
push edx
dec ecx
and ecx, 2
sub eax, ecx
lea edx, [eax + ebp + 1]
push edx
push esi
call dword [sym.imp.GDI32.dll_Rectangle]
test ebp, ebp
jle 0x4b6db4
mov eax, dword [0x56dea0]
push eax
push esi
call ebx
mov ecx, dword [0x56deb4]
push ecx
push esi
call ebx
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
dec edx
push edx
mov edx, dword [esp + 0x20]
lea ecx, [eax + ebp]
push ecx
inc edx
push edx
inc eax
push eax
push esi
call dword [sym.imp.GDI32.dll_Rectangle]
mov eax, dword [0x56debc]
push eax
push esi
call ebx
test edi, edi
jle 0x4b6dc6
lea eax, [edi - 1]
jmp 0x4b6dc8
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push 0
push ecx
add eax, edx
push eax
push esi
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov ebx, dword [sym.imp.GDI32.dll_LineTo]
push eax
add ecx, ebp
push ecx
push esi
call ebx
test ebp, ebp
jle 0x4b6e11
mov edx, dword [0x56deb8]
push edx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
push esi
call ebx
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
dec edx
push edx
push eax
push esi
call ebx
mov ecx, dword [0x56dec8]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
dec edx
push edx
push eax
push esi
call ebx
mov ecx, dword [0x56deac]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
inc edx
push edx
push eax
push esi
call ebx
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
push 0
push ecx
inc edx
push edx
push esi
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push eax
inc ecx
push ecx
push esi
call ebx
mov edx, dword [0x56dec4]
push edx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [0x56dea8]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x464]
cmp dword [esp + 0x45c], ecx
jg 0x4b6eda
jl 0x4b6eb6
mov edx, dword [esp + 0x460]
cmp dword [esp + 0x458], edx
jae 0x4b6eda
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
add eax, 0xfffffffe
push eax
mov eax, dword [esp + 0x1c]
dec ecx
push ecx
inc edx
push edx
lea ecx, [edi + eax + 1]
push ecx
push esi
call dword [sym.imp.GDI32.dll_Rectangle]
test edi, edi
jle 0x4b6f51
mov edx, dword [esp + 0x20]
sub edx, dword [esp + 0x18]
dec edx
cmp edi, edx
jge 0x4b6f51
mov eax, dword [0x56dec8]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push 0
push ecx
lea eax, [edi + edx]
push eax
push esi
call dword [sym.imp.GDI32.dll_MoveToEx]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
push ecx
lea eax, [edi + edx]
push eax
push esi
call ebx
mov ecx, dword [0x56deac]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
push 0
push edx
lea ecx, [edi + eax]
push ecx
push esi
call dword [sym.imp.GDI32.dll_MoveToEx]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
push edx
add eax, ebp
push eax
push esi
call ebx
mov ecx, dword [esp + 0x464]
cmp dword [esp + 0x45c], ecx
jg 0x4b6fca
jl 0x4b6f73
mov edx, dword [esp + 0x460]
cmp dword [esp + 0x458], edx
jae 0x4b6fca
mov eax, dword [0x56deb0]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push 0
push ecx
lea eax, [edi + edx + 1]
push eax
push esi
call dword [sym.imp.GDI32.dll_MoveToEx]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push ecx
dec edx
push edx
push esi
call ebx
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
add eax, 0xfffffffe
push eax
dec ecx
push ecx
push esi
call ebx
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
add edx, 0xfffffffe
push edx
lea ecx, [edi + eax + 1]
push ecx
push esi
call ebx
mov edx, dword [esp + 0x38]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push edx
push esi
call edi
mov eax, dword [esp + 0x3c]
push eax
push esi
call edi
cmp dword [esp + 0x44], 0
jne 0x4b6ff3
mov ecx, dword [esp + 0x30]
push esi
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp byte [esp + 0x17], 0
je 0x4b7014
cmp dword [esp + 0x468], 0
jne 0x4b700d
mov byte [0x56decc], 1
jmp 0x4b7014
mov byte [0x56de9b], 1
mov ecx, dword [esp + 0x448]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x430]
xor ecx, esp
call fcn.004e6b3a
add esp, 0x440
ret 0x20