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

Disassembly:
push 0xffffffffffffffff
push 0x4d690c
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x4ec0b4]
xor eax, esp
mov dword [esp + 0x428], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ec0b4]
xor eax, esp
push eax
lea eax, [esp + 0x440]
mov dword fs:[0], eax
mov eax, dword [esp + 0x46c]
mov esi, dword [esp + 0x464]
mov ecx, dword [0x533b54]
mov dword [esp + 0x44], esi
test eax, eax
jne 0x4a173f
mov edi, ecx
mov dword [esp + 0x30], edi
jmp 0x4a1745
mov edi, eax
mov dword [esp + 0x30], eax
test edi, edi
je 0x4a22b7
mov ebx, 1
cmp dword [esp + 0x460], ebx
jne 0x4a17b5
cmp byte [0x56e1ff], 0
jne 0x4a17b5
cmp byte [0x56e1fe], 0
mov eax, dword [0x571048]
jne 0x4a19a6
test ecx, ecx
je 0x4a19a6
cmp eax, ebx
je 0x4a178b
cmp eax, 2
jne 0x4a19a6
push ebx
push 0xa2
push edi
call fcn.0042d700
push ebx
push 0xa6
push edi
call fcn.0042d700
push ebx
push 0xa1
push edi
call fcn.0042d700
mov byte [0x56e1ff], bl
mov eax, dword [0x571048]
cmp eax, 7
je 0x4a22b7
cmp eax, 0xa
je 0x4a22b7
test byte [0x571070], bl
jne 0x4a1803
or dword [0x571070], ebx
mov dword [esp + 0x448], 0
push 0x415900
push 2
push 4
push 0x571068
call fcn.00401260
mov dword [esp + 0x448], 0xffffffff
mov ebp, dword [esp + 0x45c]
mov ebx, dword [esp + 0x454]
mov edi, dword [esp + 0x450]
test esi, esi
mov esi, dword [esp + 0x458]
jne 0x4a1871
cmp dword [esp + 0x460], 2
jae 0x4a1871
mov eax, dword [esp + 0x460]
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, 0x96
add ecx, 0x32
push ecx
lea ecx, [eax*4 + 0x571068]
call fcn.00453700
test al, al
jne 0x4a1871
cmp dword [0x571048], 8
jne 0x4a22b7
cmp edi, esi
jne 0x4a22b7
cmp ebx, ebp
jne 0x4a22b7
mov edx, esi
or edx, ebp
jne 0x4a1881
mov eax, edi
or eax, ebx
mov byte [esp + 0x17], dl
je 0x4a1886
mov byte [esp + 0x17], 1
cmp byte [0x56df3b], 0
jne 0x4a18a9
cmp byte [0x56df3a], 0
jne 0x4a18a9
cmp byte [esp + 0x17], 0
jne 0x4a18a9
call fcn.004c3655
mov dword [0x56e200], eax
mov ecx, esi
or ecx, ebp
jne 0x4a18c4
mov esi, 1
xor ebp, ebp
mov dword [esp + 0x458], esi
mov dword [esp + 0x45c], ebp
cmp dword [esp + 0x460], 1
jne 0x4a18dc
push ebp
push esi
push ebx
push edi
mov ebx, 2
call fcn.004a1650
mov edx, dword [esp + 0x458]
mov ebx, dword [esp + 0x454]
mov esi, dword [esp + 0x450]
push ebp
push edx
push ebx
push esi
call fcn.0047f2a0
cmp dword [0x571048], 0
mov edi, eax
mov dword [esp + 0x38], edi
je 0x4a19e6
cmp dword [0x57104c], 0
je 0x4a19e6
mov eax, esi
or eax, ebx
jne 0x4a19e6
push 0x3b8
push eax
lea ecx, [esp + 0x80]
push ecx
call fcn.004c2670
mov eax, dword [0x56df6c]
mov edx, dword [esp + 0x3c]
add esp, 0xc
push eax
lea ecx, [esp + 0x7c]
mov dword [esp + 0x7c], 0x3b8
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], 0x7b
mov dword [esp + 0x88], 4
call fcn.004a1500
mov ecx, 0x56e248
lea eax, [esp + 0x90]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4a19b9
test dx, dx
je 0x4a19a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4a19b9
add eax, 4
add ecx, 4
test dx, dx
jne 0x4a1980
xor eax, eax
jmp 0x4a19be
cmp byte [esp + 0x468], 0
je 0x4a22b7
jmp 0x4a17ba
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4a19e6
lea ecx, [esp + 0x78]
push ecx
push 1
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
push 0x200
lea edx, [esp + 0x94]
push edx
push 0x56e248
call fcn.0047fbe0
test byte [0x571070], 2
jne 0x4a1a16
or dword [0x571070], 2
mov dword [esp + 0x448], 1
mov dword [0x571064], 0
mov dword [esp + 0x448], 0xffffffff
cmp byte [0x56e1ff], 0
je 0x4a1d26
cmp dword [0x57104c], 0
je 0x4a1d26
cmp dword [esp + 0x460], 1
jne 0x4a1d26
mov ebx, dword [0x56df6c]
cmp ebx, edi
jne 0x4a1a65
push 0xbb8
mov ecx, 0x571064
call fcn.00453700
test al, al
je 0x4a1caf
mov ebx, dword [0x56df6c]
mov ecx, edi
shl ecx, 4
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov esi, edx
shl ebx, 4
shr esi, 0x1f
add esi, edx
mov eax, 0x51eb851f
imul ebx
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], ebx
cmp esi, ebx
je 0x4a1c2a
call fcn.0049f780
mov ebp, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
cmp eax, 0x20
push 0
setl byte [esp + 0x33]
call ebp
push 0
mov ebx, eax
call ebp
mov ecx, dword [0x57104c]
mov ebp, eax
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetIconInfo]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
push ecx
lea eax, [edx + edx]
add edi, edi
push ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x58], edi
call dword [sym.imp.GDI32.dll_SelectObject]
lea edx, [esp + 0x60]
push edx
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x2c]
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
movzx ecx, word [esp + 0x72]
movzx edx, word [esp + 0x70]
mov eax, dword [esp + 0x34]
push 0
push ecx
push edx
push edi
push eax
call dword [sym.imp.GDI32.dll_CreateBitmap]
push eax
push ebp
mov dword [esp + 0x50], eax
call dword [sym.imp.GDI32.dll_SelectObject]
cmp byte [esp + 0x2f], 0
mov dword [esp + 0x54], eax
jne 0x4a1b40
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x28], ecx
xor edx, edx
cmp dword [0x545038], 0xffffffff
setne dl
add edi, 0xffffffff
mov dword [esp + 0x58], edx
js 0x4a1bbe
xor esi, esi
cmp dword [esp + 0x34], esi
jbe 0x4a1bb5
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 0x4a1b9b
add eax, 2
cmp esi, eax
ja 0x4a1b9b
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x40]
cmp edi, eax
jb 0x4a1b9b
cmp byte [esp + 0x2f], 0
mov eax, ebx
jne 0x4a1b91
mov eax, ebp
push 0xffff
push edi
push esi
push eax
jmp 0x4a1ba8
push edi
push esi
push ebx
call dword [sym.imp.GDI32.dll_GetPixel]
push eax
push edi
push esi
push ebp
call dword [sym.imp.GDI32.dll_SetPixel]
inc esi
cmp esi, dword [esp + 0x34]
jb 0x4a1b6b
sub edi, 1
jns 0x4a1b55
mov esi, dword [esp + 0x40]
mov ecx, dword [esp + 0x5c]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push ecx
push ebx
call edi
mov edx, dword [esp + 0x54]
push edx
push ebp
call edi
mov edi, dword [sym.imp.GDI32.dll_DeleteDC]
push ebx
call edi
push ebp
call edi
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_CreateIconIndirect]
mov ecx, dword [0x57104c]
push ecx
mov edi, eax
call dword [sym.imp.USER32.dll_DestroyIcon]
mov edx, dword [esp + 0x24]
mov dword [0x57104c], edi
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
push edx
call edi
mov eax, dword [esp + 0x28]
push eax
call edi
mov ecx, dword [esp + 0x48]
push ecx
call edi
mov ebp, dword [esp + 0x45c]
mov ebx, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
push 0x3b8
lea edx, [esp + 0x7c]
push 0
push edx
call fcn.004c2670
mov eax, dword [esp + 0x3c]
add esp, 0xc
mov dword [esp + 0x78], 0x3b8
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], 0x7b
mov dword [esp + 0x84], 5
cmp esi, ebx
je 0x4a1c73
mov dword [esp + 0x84], 7
mov ecx, dword [0x57104c]
mov dword [esp + 0x8c], ecx
push edi
lea ecx, [esp + 0x7c]
mov dword [esp + 0x8c], 0x8007
call fcn.004a1500
lea edx, [esp + 0x78]
push edx
push 1
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
mov esi, dword [esp + 0x450]
mov dword [0x56df6c], edi
mov eax, dword [esp + 0x454]
mov ecx, dword [esp + 0x458]
mov dword [0x56e178], esi
mov dword [0x56e17c], eax
mov dword [0x56e170], ecx
mov dword [0x56e174], ebp
push edi
lea edx, [esp + 0x434]
push 0x4dedc0
push edx
call fcn.004c4c2d
add esp, 0xc
cmp dword [esp + 0x460], 0
jne 0x4a1d9a
mov eax, dword [esp + 0x30]
push 0x9e
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x99
xor edi, edi
lea esi, [esp + 0x434]
mov ebx, eax
call fcn.004a0cb0
mov ebp, dword [esp + 0x30]
jmp 0x4a1e30
cmp dword [esp + 0x460], 0
jne 0x4a1caf
cmp dword [0x571048], 0
mov eax, dword [esp + 0x454]
mov ecx, dword [esp + 0x458]
mov dword [0x56e188], esi
mov dword [0x56e18c], eax
mov dword [0x56e180], ecx
mov dword [0x56e184], ebp
je 0x4a1cd4
cmp byte [0x56df3b], 0
je 0x4a1cd4
or esi, eax
jne 0x4a1cd4
test ebp, ebp
jl 0x4a22b7
jg 0x4a1cd4
cmp ecx, 0x10000
jb 0x4a22b7
jmp 0x4a1cd4
mov ebp, dword [esp + 0x30]
push 0x9d
push ebp
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x98
xor edi, edi
lea esi, [esp + 0x434]
mov ebx, eax
call fcn.004a0cb0
mov ecx, dword [0x571048]
test ecx, ecx
jne 0x4a1e36
cmp dword [esp + 0x460], 1
jne 0x4a1e36
mov ecx, dword [esp + 0x454]
mov edx, dword [esp + 0x450]
mov eax, dword [0x56e194]
push ecx
mov ecx, dword [0x56e190]
push edx
push eax
push ecx
call fcn.0047f2a0
cmp eax, 0x63
jne 0x4a1e07
cmp dword [0x54c194], edi
jne 0x4a1e07
mov eax, 0x64
push eax
lea edx, [esp + 0x434]
push 0x4dedc0
push edx
call fcn.004c4c2d
add esp, 0xc
push 0xa4
xor edi, edi
lea esi, [esp + 0x434]
call fcn.004a0cb0
mov ecx, dword [0x571048]
mov esi, dword [esp + 0x45c]
mov edi, dword [esp + 0x454]
cmp edi, esi
jl 0x4a1e71
jg 0x4a1e5a
mov eax, dword [esp + 0x450]
cmp eax, dword [esp + 0x458]
jbe 0x4a1e71
mov edx, dword [esp + 0x458]
mov edi, esi
mov dword [esp + 0x450], edx
mov dword [esp + 0x454], edi
cmp byte [0x56e1fd], 0
je 0x4a1ee7
cmp byte [0x56df3b], 0
jne 0x4a1e8d
cmp dword [esp + 0x460], 0
je 0x4a1ea0
cmp byte [0x56df3a], 0
jne 0x4a1ebc
cmp dword [esp + 0x460], 1
jne 0x4a1ebc
test ecx, ecx
je 0x4a1eb3
cmp ecx, 1
je 0x4a1eb3
cmp ecx, 2
je 0x4a1eb3
cmp ecx, 8
jne 0x4a1ebc
push 9
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esp + 0x458]
mov ecx, dword [esp + 0x450]
push 0
push esi
push eax
push edi
push ecx
call fcn.0047f2a0
push eax
push 0x402
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4a2296
test ebx, ebx
jne 0x4a1eff
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
jmp 0x4a1f24
lea edx, [esp + 0x18]
push edx
push ebx
call dword [sym.imp.USER32.dll_GetClientRect]
push 2
lea eax, [esp + 0x1c]
push eax
push ebp
push ebx
call dword [sym.imp.USER32.dll_MapWindowPoints]
inc dword [esp + 0x24]
mov ecx, dword [0x571048]
mov esi, dword [esp + 0x44]
test esi, esi
jne 0x4a1f3b
push ebp
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [0x571048]
mov esi, eax
xor ebp, ebp
test ecx, ecx
jne 0x4a1f8b
cmp dword [esp + 0x460], 1
jne 0x4a1f8b
mov ecx, dword [esp + 0x45c]
mov edx, dword [esp + 0x458]
mov eax, dword [0x56e194]
push ecx
mov ecx, dword [0x56e190]
push edx
push eax
push ecx
call fcn.0047f2a0
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 ebp, edx
shr ebp, 0x1f
add ebp, edx
mov eax, dword [esp + 0x45c]
mov ecx, dword [esp + 0x458]
mov edx, dword [esp + 0x454]
push eax
mov eax, dword [esp + 0x454]
push ecx
push edx
push eax
call fcn.0047f2a0
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 0x4a1fd4
mov ebp, edi
mov eax, dword [0x56df60]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push esi
call ebx
mov ecx, dword [0x56df44]
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 0x4a2057
mov eax, dword [0x56df40]
push eax
push esi
call ebx
mov ecx, dword [0x56df54]
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 [0x56df5c]
push eax
push esi
call ebx
test edi, edi
jle 0x4a2069
lea eax, [edi - 1]
jmp 0x4a206b
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 0x4a20b4
mov edx, dword [0x56df58]
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 [0x56df68]
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 [0x56df4c]
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 [0x56df64]
push edx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [0x56df48]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x45c]
cmp dword [esp + 0x454], ecx
jg 0x4a217d
jl 0x4a2159
mov edx, dword [esp + 0x458]
cmp dword [esp + 0x450], edx
jae 0x4a217d
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 0x4a21f4
mov edx, dword [esp + 0x20]
sub edx, dword [esp + 0x18]
dec edx
cmp edi, edx
jge 0x4a21f4
mov eax, dword [0x56df68]
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 [0x56df4c]
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 + 0x45c]
cmp dword [esp + 0x454], ecx
jg 0x4a226d
jl 0x4a2216
mov edx, dword [esp + 0x458]
cmp dword [esp + 0x450], edx
jae 0x4a226d
mov eax, dword [0x56df50]
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 0x4a2296
mov ecx, dword [esp + 0x30]
push esi
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp byte [esp + 0x17], 0
je 0x4a22b7
cmp dword [esp + 0x460], 0
jne 0x4a22b0
mov byte [0x56df3b], 1
jmp 0x4a22b7
mov byte [0x56df3a], 1
mov ecx, dword [esp + 0x440]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x428]
xor ecx, esp
call fcn.004c1c22
add esp, 0x438
ret 0x20